DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   How do you read radio buttons in XHTML (http://www.daniweb.com/forums/thread85721.html)

MidiMagic Aug 8th, 2007 7:58 pm
How do you read radio buttons in XHTML
 
XHTML has removed the "name" attribute.

But the JavaScript method for reading radio buttons requires the "name" attribute to be the same on each radio button.

W3C says to use "id", but that no more than one "id" is valid.

I need to write an XHTML page with radio buttons. How?

stymiee Aug 9th, 2007 12:17 am
Re: How do you read radio buttons in XHTML
 
'name' has not been deprecated. Without it forms won't work any more.

MidiMagic Aug 9th, 2007 12:44 am
Re: How do you read radio buttons in XHTML
 
The information I had was wrong.

The validator was confused by a couple of unampersanded quotes in different value strings. They made the validator think it was dealing with a different tag. But it didn't tell me what tag it thought was there.

I got the solution from a helpful guy at W3C.

Name is deprecated in all uses except form.


All times are GMT -4. The time now is 7:59 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC