Property values in a CSS div jQuery
Posted: May 9, 2011 Filed under: jQuery, Web developer | Tags: CSS, Developer, Evita, jQuery Leave a commentThis is a very basic tip, basically consists in knowing what the value of a CSS property, through jQuery.
For example:
#div{display: none}
To know the value of this div in jQuery, addresses the following code statement:
var value = $('#div').css('display');
if(value == 'none'){
/*What you do*/
}else{
/*What you do*/
}
Until next time.