clipster
Apr 17th 2009, 9:21 pm
I'm a total idiot with javascript.
I need to disable a submit button when any one of 4 text fields (text area or input type=text types) is changed.
scenario... data pulled from db prefills the form elements. If user changes any of the value=' saved text from db ' displayed on the page, the submit button is disabled.
I have two separate submit buttons, one named 'changedata', the other named 'submit'. It's the one named submit that must be disabled if the user changes any of the data on this form.
I have spent too many hours this evening looking for something that works, but heck, I can't even get my submit button to be active even with `disabled=false` attribute (I was just testing ff3 - having the word disabled anywhere in the <input type=submit.... > automatically disables that button. I have no idea what to do.
How much $$ for a solution?
Thanks in advance.
I need to disable a submit button when any one of 4 text fields (text area or input type=text types) is changed.
scenario... data pulled from db prefills the form elements. If user changes any of the value=' saved text from db ' displayed on the page, the submit button is disabled.
I have two separate submit buttons, one named 'changedata', the other named 'submit'. It's the one named submit that must be disabled if the user changes any of the data on this form.
I have spent too many hours this evening looking for something that works, but heck, I can't even get my submit button to be active even with `disabled=false` attribute (I was just testing ff3 - having the word disabled anywhere in the <input type=submit.... > automatically disables that button. I have no idea what to do.
How much $$ for a solution?
Thanks in advance.