rnt Posted June 30, 2009 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Korken Posted July 1, 2009 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.