I have a text box with a focus event. whenever a text field loses focus (Tab, clicking on any other part of the form), a user-defined function is called based on certain conditions that removes the warning.
Now my form also has a button, after filling in the text field, when I press the focusOut button, the text field event is called instead of the button click event.
How to stop the foucusout event of a text box being raised when a button is clicked?
("$textbox").focusout(function(){ validation; alert("message"); }); ("$btn").click(function(){ ---- });
Can someone help me?
source share