How do you read radio buttons in XHTML

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
Reply

Join Date: Jan 2007
Posts: 3,193
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 163
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Sensei

How do you read radio buttons in XHTML

 
0
  #1
Aug 8th, 2007
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?
Last edited by MidiMagic; Aug 8th, 2007 at 7:59 pm.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: How do you read radio buttons in XHTML

 
1
  #2
Aug 9th, 2007
'name' has not been deprecated. Without it forms won't work any more.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,193
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 163
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Sensei

Re: How do you read radio buttons in XHTML

 
0
  #3
Aug 9th, 2007
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.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC