Answers for "jquery add css to tag"

42

how to set css style using jquery

$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
Posted by: Guest on March-04-2020
1

jquery add css

$('#start').css({'font-weight':'bold'});
Posted by: Guest on April-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language