jQuery - single and multiple CSS properties

0 votes
201 views
added Jun 17, 2022 in jQuery by lcjr First Warrant Officer (11,780 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.
...