Jump to content

Recommended Posts

Posted

Hi,

 

Initailly when the page loads there is no onSubmit event associated with it and I need to change the onSubmit to call a javascript function based on change's in the value.

 

form tag when page load's


form tag to be after change 

 

Any help is greatly appreciable. Thanks in advance.

 

Regards,

Rohit

Posted

Perhaps something like this:

function set_onSubmit(ACT, ID)
{
   var myForm = document.getElementById(ID);
   myForm.setAttribute("onSubmit", ACT);
}


And you could have a button or something:




 

Hope it helps!

 

//Emil Fresk

Sweden

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...