rnt Posted June 30, 2009 Report Posted June 30, 2009 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
Korken Posted July 1, 2009 Report Posted July 1, 2009 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
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