[ACCEPTED]-Jquery if then statement for css value-css
Accepted answer
if ($('div.x').css('height') === 'auto') {
$('.y').removeClass('a');
}
0
$(document).ready(function(){
if ($('div.x').css('height') === 'auto') {
$('.y').removeClass('a');
}
});
You may need to do that within a each() call
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.