Topic: Radio buttons in XHTML (Page 1 of 1) |
|
---|---|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() In HTML 4, when you wanted to have some radio buttons, you'd do this... |
Maniac (V) Inmate From: under the bed |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Hmm. I thought that name was deprecated in favor of ID. |
Paranoid (IV) Inmate From: Milwaukee |
![]() As far as I know, "name" is the variable that gets passed via GET or POST, while "id" is the DOM handle. So you could have several things with the same name, if you wanted them to pass the same variable, but you could give them different IDs for dHTML purposes. |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() I think it depends on the DOCTYPE you're using. Using the transitional DOCTYPE, this validates correctly: code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Well, I'm looking for the strict XHTML doctype to work =) |
Bipolar (III) Inmate From: Cold Sweden |
![]() |