html - Javascript code to change the div style -
here div:
<div class= "kjx" > // div content </div> after clicking on div, want change div style this:
<style> background-color: red; font-type: oswald; </style> i want change stay on div after clicking, not during clicking. there script that?
i think should be:
$(function() { $('.home').click(function() { $(this).css({'background-color', 'red'}); }); }):
Comments
Post a Comment