Welcome visitor
* Login
* Register
It is currently September 16th, 2019, 12:01 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  JavaScript: one event but two actions (functions)
PostPosted: December 18th, 2009, 4:16 am 
User avatar

Posts: 14
Hey, I dont know if JavaScript can run 2 different functions from the same event. I have a form that I want first to validate onsubmit and then make some calcultaions with it. Is this possible?

_________________
Blues is easy to play, but hard to feel.


Top
 Profile  
 
  Re: JavaScript: one event but two actions (functions)
PostPosted: December 18th, 2009, 6:03 am 

Posts: 61
Yes, heres an easy way to do it:
<form onsubmit="function1(); function2();">


Top
 Profile  
 
  Re: JavaScript: one event but two actions (functions)
PostPosted: December 18th, 2009, 7:21 am 
User avatar

Posts: 14
Thank you, I just needed to make sure cos I cant find out by myself cos I cant change the resolution on the computer Im on now. So again, thanks!

_________________
Blues is easy to play, but hard to feel.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron