开发者

how to fire click event for the textbox

开发者 https://www.devze.com 2023-02-02 19:49 出处:网络
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

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

精彩评论

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