Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Radio Buttons

  1. #1
    New Coder
    Join Date
    Jul 2011
    Thanked 0 Times in 0 Posts

    Radio Buttons

    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.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 Posts
    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.
    Last edited by Fou-Lu; 07-26-2011 at 11:34 PM.


    LinkBacks (?)

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts