Jquery CSS

Set CSS Property

$(document).ready(function(){
 $('button').click(function(){
  $('p').css('color', 'black');
 });
});


Set Multiple CSS Property

$(document).ready(function(){
 $('button').click(function(){
  $('p').css({
   color: 'white',
   fontSize: '24px'
  });
 });
});

Share this

Related Posts