Forum Moderators: open

Message Too Old, No Replies

HTML Forms - Radio Buttons

Hot to make them nonselectable

         

wfernley

2:35 pm on Feb 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey I was curious if there is a way to make a radio button appear in a form but make it so the user cannot select it. I know for input boxes you put readonly="true" this does not work for radio buttons.

What is the attribute to add to the radio buttons so the user cannot select them?

Thanks in advance for your help!

Wes

Edouard_H

2:48 pm on Feb 21, 2006 (gmt 0)

10+ Year Member



DISABLED eg

<INPUT TYPE="RADIO" NAME="name" VALUE="value" DISABLED>

Robin_reala

3:35 pm on Feb 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or if you're using XHTML:

<input type="radio" disabled="disabled" />

wfernley

5:13 pm on Feb 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey thats what I'm looking for!

Thanks again for your help! :)