Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to call the java script on leave event of textbox, but my leave event is not going to fire. What do I need to do to fire the event?
Please help me.
Thanks.
Posted
Updated 26-Dec-10 0:00am
v2
Comments
JF2015 26-Dec-10 6:01am    
Improved spelling and grammar.
Pavel Yermalovich 26-Dec-10 6:02am    
First check JavaScript errors in your browser

1 solution

Assuming you are using "onblur" event to call the javascript,

http://www.w3schools.com/jsref/event_onblur.asp



1. Check in the status bar if you are getting any script error, if so check the script you are calling on "onblur" event of textbox.

2. If you dont find any script error, check with something simple script to see if the javascript is working, for e.g.
HTML
onblur='javascript: alert("test");'
if you are receiving an alert message, that means the browser and javascript are working fine. You need to debug the script you are calling on "onblur" event of textbox.

3. If you still not able to find the error, post the script you are calling on the onblur event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900