Change CSS With JavaScript (jQuery)
I have a CSS 'button' that is covering some table rows. Each time you click it, it reveals the next row. Upon revealing the last row, the text is changed to DONE! The script bel
Solution 1:
Create a class a with the new background color, and then add it
.completed-step {
background-color: pink;
cursor: default;
}
// replace the call to '$("#nextStep").css('cursor', 'default');'
$("#nextStep").addClass("completed-step");
here's an example http://jsfiddle.net/ED4Zt/1/
Baca Juga
- How Can I Fade Are Background Image In And Out Using Jquery In A Parent Div Without Having It Affect The Child Div?
- Sorting Table Rows According To Table Header Column Using Javascript Or Jquery
- Custom File Input Using Jquery Restrict The User File Types And Filename If The User Click Check Box It Input File Disable
Post a Comment for "Change CSS With JavaScript (jQuery)"