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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -