Add css using Jquery or javascript

Add CSS using JQuery Javascript
Some time developer want to add CSS in code of jquery or JavaScript like change the color of button when click on it . For example I have a button when i click on button then background color of it change to some other color and also button text color change to some other.I do it here in both  Jquery as well as JavaScript.

Code Sample [JQuery]
Code Sample  [JavaScript]



Post a Comment