在“链接"按钮的单击事件中应用Jquery Fucntion(在后面的代码中) [英] Apply Jquery Fucntion in click event of Link button (in code behind)

查看:89
本文介绍了在“链接"按钮的单击事件中应用Jquery Fucntion(在后面的代码中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,,

这是我想知道的另一个问题,该如何在Linkbutton的Onclick()事件上应用任何jquery函数.

我只有一个Linkbutton,并且想在单击linkbutton时在jquery函数下面进行设置.

Hi,,,,

this is another question that i want to know that how to apply any jquery function on Onclick() event of Linkbutton.

i have a one Linkbutton and i want to set below jquery function when linkbutton is clicked.

<li  önclick="TINY.box.show({iframe:''User_News.aspx'',boxid:''frameless'',width:250,height:250,fixed:false,maskid:''bluemask'',maskopacity:40,closejs:function(){closeJS()}})" style="color: #0000FF; font-size: medium; height: 28px;" id="l1" 
 runat="server">

this function give me popup message. so how to get this popup when linkbutton is clicked.

Please Help Me on this question....

Thanks in Advance....
Mitesh

推荐答案

朋友,

Hi Friend,

<script type="text/javascript">


(文档).ready(功能() {
(document).ready(function() {


(' #linkbutton1').click(功能(e){ e.preventDefalut(); // 此代码行将阻止点击事件的默认行为 // 在这里,您可以通过单击链接按钮来编写要执行的代码 }); }); </script>
('#linkbutton1').click(function(e){ e.preventDefalut(); //this line of code will prevent the default behaviour of click event // here u write the code which u want to execute on click of a linkbutton }); }); </script>





如果您不满意,请检查以下链接

如何在ASP中使用jquery弹出链接按钮.净 [ ^ ]





If u r not satisfied then please check the below link

how to popup a linkbutton using jquery in asp.net[^]


这篇关于在“链接"按钮的单击事件中应用Jquery Fucntion(在后面的代码中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆