Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

jquery element css

//Set one style attribute
$('#element').css('display', 'block');
//Set multiple style attributes
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style *
 
PREVIOUS NEXT
Tagged: #jquery #element #css
ADD COMMENT
Topic
Name
2+4 =