Despite the fact that you are clicking the button, but in reality, the button is not getting clicked, because, the
focusout()
event is getting fired, which is showing an
alert()
message box (Which is not allowing to fire the button
click()
event)
To verify this, you can comment out the alert within the
focusout()
event as follows and see what happens:
<script type="text/javascript">
$(document).ready(function() {
$('#<%=TextBox1.ClientID %>').focusout(function() {
});
$('#<%=Button1.ClientID %>').click(function() {
alert('button click');
});
});
</script>
This time, the
"button click"
alert message will be shown.
I hope, this helped you.