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 5 of 5

Thread: checkbox style

  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    checkbox style

    Hi there. Is there a way to change the checkbox style when it is "checked". I would like to apply a different input style class when the box is checked.
    Last edited by nikko50; 02-13-2005 at 03:58 PM.

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    I dunno if something like this is possible without some javascript... I would help you on this one, except I know nothing at all about javascript

    PM a moderator if you want to move this question to that forum (please don't crosspost), unless someone else has a solution??

  • #3
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is sometimes a problem, especially with browsers with oogly default checkboxes. As of now, there is no way of consistently styling checkboxes...The firefox nightlies now have much better looking form elements. I usually use a general style for input tags, and if a browser can support it, fine. Javascript however will not do the trick.

    The inability to style checkboxes is more of a accessibility/useability issue. If the checkboxes are default and recognizable, people have a better chance of understanding what they are and how to use them....

    HTH
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    only thing you can do is change the background on the outside of the checkbox, and i dont even think it will work in any other browser but IE

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    You *could* create your own checkbox with javascript like mentioned. But I wouldn't recommend it, simply for the afore mentioned reasons of usability.
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

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