abahaedini Posted July 13, 2012 Share Posted July 13, 2012 hi dear frinds I have a tag like this: <input name="name1"> I wana add mutlti events for validation. this code works: <input name="name1" onchange="function1(arg1,arg2)" onclick="function1(arg1,arg2)" ?> but I think It does parallel Job and it is not normal. that code is true or is there a better way? in simple: I wana wirte Multiple events that call the same functiontnx Link to comment Share on other sites More sharing options...
birbal Posted July 13, 2012 Share Posted July 13, 2012 if you want to validate input box onchange event is sufficient for that Link to comment Share on other sites More sharing options...
abahaedini Posted July 14, 2012 Author Share Posted July 14, 2012 tnx for answerwhy not "onblur" for input text? don't you think it's better than "onchange"? so is there any other way (for multi event)? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now