I try to make jquery live color switcher but i need to know is it possible add some plugin who change a background color like header or body
Now I use jQuery MiniColors 2.0.
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.
You can use simple javascript to get the element and change the background color using
or you can use jQuery and use:
but with your color of course.
EDIT: using style.background is better than using .bgColor.
Using your JsFiddle: add this to the change function:
Here’s a live example: http://jsfiddle.net/KNWVv/