Monday, March 13, 2017

set the CSS style of something in jQuery

$("p").css({"background-color": "yellow", "font-size": "200%"});

...is an example from here.

No comments:

Post a Comment