Jump to content

Multiple events call the same function


abahaedini

Recommended Posts

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

if you want to validate input box onchange event is sufficient for that

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...