>
> Therefore, I was wondering if it would be feasible to include a standard
> that would use a syntax similar (does not actually *have* to be this way)
> to selected="selected"? In which case, the syntax would be
> required="required". Or, if it is an email input (i.e. Your e-mail
> address:<input type="text" required="required; include:@" />).

The stats you quoted do seem quite high - I'd be interested to see the full
questions etc to see if there was some further context. Anyway, that
aside...

I would suggest that you follow the hijax approach and build your form with
server-side validation to back up js validation (eg. if you're using PHP, Y
Validate might be suitable for you
http://www.sitepoint.com/article/javascript-just-not-validation/).

Looking to the future, HTML5 is introducing a simple "required" attribute:

"The new required attribute applies to input (except when the type attribute
is hidden, image or some button type such as submit) and textarea. It
indicates that the user has to fill in a value in order to submit the form."
[http://www.w3.org/TR/html5-diff/#new-attributes]

Obviously that just requires *something* to be entered and doesn't validate
the actual input; but it will still make life easier. Plus, of course, being
HTML5 it could be quite some time before we see a level of browser
implementation that would let us go ahead and use it. But it's good to know
it's in the plan :)

cheers,

Ben

-- 
--- <http://weblog.200ok.com.au/>
--- The future has arrived; it's just not
--- evenly distributed. - William Gibson


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to