Jquery function calls more than one time.
Posted
by
Harie
on Stack Overflow
See other posts from Stack Overflow
or by Harie
Published on 2011-01-13T07:20:06Z
Indexed on
2011/01/13
9:53 UTC
Read the original article
Hit count: 183
I am having an aspx page in which I am calling a user control. The user control I am using a pop up to display it when a user clicks a asp:linkbutton. In that user control I am having a textbox and I am calling a Jquery Blur to do some validation. While doing so the function is calling [blur] is calling twice. I just called an alert() with the textbox value.So I can see the alert is coming twice .What I need to do to avoid the second time. I need to do it only whenever the user going out of the textbox and that also one time.
$('#<%=txtCategory.ClientID %>').blur(function() {
alert($(this).val());
});
This is called twice.Thanks for ur response.
© Stack Overflow or respective owner