PDA

View Full Version : Disabling Controls(Radio Button)


Abd
03-14-2003, 02:50 PM
Hi,

Need some help, I have a form which is been populated by some data from an Oracle Database, and I have two radio buttons which I want to disable either of them base on the populated data. How to plsease.

Abd

brothercake
03-14-2003, 03:25 PM
there's a disabled attribute:

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

but I'm not sure how x-browser that is

cheesebagpipe
03-14-2003, 10:31 PM
Actually....it's <input type="radio".....disabled="disabled" />

http://www.w3schools.com/xhtml/xhtml_syntax.asp

If you need some JS to actually parse the data and do the disabling (much better done on the server) you'll need to give more details.