To assign inline css to any DOM element, we can jQuery ".css()" method to define it. Like, $("#dvText").css('color','#FF0000'); And if you need to remove the color again, then you can use the same css method to remove it. Like, $("#dvText").css('color',''); The above method to remove/restore the style is fine, when you have defined a single […]
Comments Off on How to restore CSS styles using jQuery