Guys,
I have some input checkbox tags:
They look pretty light and hard to see or print. I tried restyle the checkbox, it seems that the disabled checkbox’s style can’t be changed?
Do you guys have any idea?
Thanks a lot! 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The trick is to not actually disable the checkbox but intercept the click action of the “disabled” textbox so it functions as if it was disabled from that point you can style it and it will look how you want.
What you will do is add this on your “disabled” checkboxes instead of disabled=”disabled”:
EDIT: As someone noted below there is a drawback to using this method. The value of the checkbox will still be posted back to the server since it is technically enabled whereas if you used the supported method you would lose control over the look but wouldn’t have to deal with this additional data. (Thanks Robert)