On Oct 29, 10:55 pm, 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" />

An input must have a name attribute to be successful, otherwise it
will not be submitted by normal form submission.

More efficient than getElementById is to use the form's own collection
of elements:

  onchange="this.form.subButton.disabled = false;"

The onchange event is not dispatched until the input loses focus,
users may wonder why they have to click or touch elsewhere in the page
before the submit button is enabled again.

Also remember that HTML5 is only a draft, it is not a standard yet.

Issues relating to multiple submits were dealt with years ago. The
most common solution is to not disable the submit button and handle
multiple submits at the server or by the function called onsubmit.


--
Rob

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

Reply via email to