I have an input field:
<input type="text" name="notifyEmail" id="parametersEmail" value="" size=40 />
I have a piece of jquery code that works when I click on a tab or otherwise leave a field that invokes the validation procedure:
$("#parametersEmail").blur(function(event) { validateParameterEmail(); });
What I would like to do is run the validateParameterEmail() function whenever the value or contents of the input field changes.
So, I also tried the .change() handler:
$("#parametersEmail").change(function(event) { validateParameterEmail(); });
But when I change the contents of parametersEmail , this handler does not call the validation function.
Is there any other handler I should use? Or can I not connect multiple event handlers to the input field?
jquery input validation onchange blur
Alex reynolds
source share