Wednesday, 11 September 2013

my focusout event to call a function not working

my focusout event to call a function not working

I created a validateName function, it work when I call
name.validateName(); which the name is var name = $("#name");
how I need to bind it together with focusout event? I want the function to
execute if the input field is focusout..
I tried :
$(name).on('focusout', function(){
$(this).validateName();
)};
not working..

No comments:

Post a Comment