Answers for "add css in an element by in jQuery"

1

jquery add css

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

jquery element css

//Set one style attribute
$('#element').css('display', 'block');
//Set multiple style attributes
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style *
Posted by: Guest on June-05-2020

Code answers related to "add css in an element by in jQuery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language