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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to make checkbox label bold from js

    I need to make a checkbox label bold from inside a js.

    Can anyone suggest a solution

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you mean the check inside the checkbox then I do not think it is possible...

    You could however, write an editable div which has an image for the background, then when the user clicks on it use the action to trigger the check or not, then you could have any background or colors you want...

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean bold the label for a checkbox? Just wrap it in <b>label_text</b>:
    Code:
    <label for="cbox"><input type="checkbox" name="cbox" id="cbox"><b>lala</b></label>
    Sadiq.


  •  

    Posting Permissions

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