View Full Version : Radio Buttons

07-26-2011, 07:42 PM
On my website I have a radio button as any other normal radio button.

<input type="radio" name="crime" value="4" id="4" class="submit">

is there any way to get rid of this radio button and click something for example
<td>Blah blah</td>
<td>Blah Blah</td>

is there any code i can put in the <tr> tag so if i click that section it will act as a radio button and when its selected change the background of the tr section.

07-26-2011, 10:27 PM
This can be done with javascript to erase and replace a radio with a textual representation. I wouldn't replace the radio itself, I would use javascript to perform the change (keep in mind javascript is a pure client option which can be disabled).
This doesn't have anything to do with Java though, moving from Java forum to Javascript forum.

Looks like one in the PHP forum as well. I'll move that here and close this one.