jQuery - single and multiple CSS properties

0 votes
59 views
added Jun 17 in jQuery by lcjr First Warrant Officer (9,190 points)
// single css properties
$(article).find('#prlogo').css('height', '30px').show(); 

//multiple css properties
$(article).find('#print-title').css({"margin": "10px 0", "font-size": "20px"}).show(); 

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...