How do I hide the text behind a radio button?

  • Profile Image
    Mark Goessens
    Asked on January 16, 2012 at 04:54 AM


    I'm trying to hide the text behind one radio buttons. So there is only the label, and the radiobutton left.
    I know it's possible, but I can't find the right div or classname for it.

    It's going about the text behind input_63_0.

    I tried a lot:

    #id_63 label {visibility:hidden;} 
    (but then the text in front of the radio button disappears)

    #input_63_0 text {visibility:hidden;} 
    (nothing happens)

    and many more...

    Can you tell me what code I have to inject?

    Greets, Mark 

  • Profile Image
    Answered on January 16, 2012 at 07:30 AM

    Update: Probably it's not the best way to do it, but I put the 'text' of the particular radiobutton in a new div.
    Then I injected the css line, to hide that div. 
    It works anyway, but I would like to know how what the div/class name is from the text behind the radiobutton.

    Greets, Mark

  • Profile Image
    Answered on January 16, 2012 at 11:02 AM

    Hello Mark,

    In your example, based on the ID of the input field 

    #id_63_0 + label {visibility:hidden;}  

    should work.