我有正在使用的jQuery语句
<script type="text/javascript">
$(document).ready($('#<%=email.ClientID%>').keydown(function ()
{
alert("dsadsd");
}
)
);
</script>
文本框是 - &gt;
<asp:TextBox name="email" runat="server" ID="email" CausesValidation="True"
ValidationGroup="email" ></asp:TextBox>
键入
时不执行答案 0 :(得分:1)
<asp:TextBox name="email" ClientIDMode="Static" runat="server" ID="email" CausesValidation="True" ValidationGroup="email" ></asp:TextBox>
$(document).ready(function(){
$('#email').keydown(function(){
alert("test");
})
});