I am trying to change the CSS of one element on click of another element. I\'ve searched a lot but nothing works perfectly. Currently I am using the below code, but it doesn
Try this:
$('#foo').css({backgroundColor:'red', color:'white',fontSize:'44px'});