I'll definitely give this a try. Thanks so much. Brian
Sent from my iPhone On Oct 29, 2010, at 9:04 AM, Brian McMillin <[email protected]> wrote: Brian - I think the trick you need is something like this: <form id="myForm" > <input type="text" onChange="document.getElementById('subButton').disabled=false;" value="Enter Some Data" /> <input type="text" onChange="document.getElementById('subButton').disabled=false;" value="Enter More Data" /> <input id="subButton" disabled="true" type="submit" /> </form> You assign an id to the submit button. Then you use the JavaScript DOM access to find the named element. Then you set the attribute that you need. Hope this helps. Brian ------------------------------ *From:* Brian McGonagill <[email protected]> *To:* [email protected] *Sent:* Fri, October 29, 2010 12:32:50 AM *Subject:* refer to element for an event in html5 I have a form in HTML5, I have a submit button that I am making disabled after the click so that the user won't click it again causing the Javascript to run multiple times in the background...but I want to enable it again if a change is made to the form. I used this.disabled=true for the initial disabling in the attribute of the element event...but I don't know how to refer to it to show that if something in the form is changed, to enable it again. Any help is greatly appreciated. Brian -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
