Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    15
    Thanks
    1
    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
    <tr>
    <td>Blah blah</td>
    <td>Blah Blah</td>
    </tr>

    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
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 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.

    Edit:
    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 10:34 PM.


  •  

    Posting Permissions

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