Jump to content

Multiple events call the same function

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 post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...