开发者

how to fire click event for the textbox

how to fire click event for the textbox which is put under the gridview in item templat开发者_运维百科e in asp.net?


It is the same as making a clickevent outside a gridview. im using jqueryto do this

 <asp:textbox id="textbox1" ontextchanged="textbox1_textchange">
 <asp:linkbutton runat="server" id="hiddenbtn" onclick="textbox_click"/></asp:textbox>
<script>
$(document).ready(function() {
  $("#textbox1").click(function () {
    $('#hiddenbtn').trigger('click');
  });
});
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜