Forum : OnBlur event handler
Brief description  about Online courses   join in Online courses
View Sasmita  Patnaik 's Profile

OnBlur event handler

I am calling two functions onBlur event. But the condition is the second function will be called only if first function is true, else it will not execute the second function.

onBlur="isInteger(this.value); age_msg();"

Here I want age_msg() function to be executed only if isInteger(this.value) is true and if this is false, age_msg() should not get executed.

Please help.

Regards,
Sasmita
Asked by Sasmita Patnaik | Jul 14, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Sasmita,

Call this age_msg() function inside isInteger() only if it is true. Use conditional statements.
Jul 14, 2010