I want to check whether a div with a CSS class="x" has height="auto"
div
class="x"
height="auto"
If yes I want (with a jQuery script) t
$(document).ready(function(){ if ($('div.x').css('height') === 'auto') { $('.y').removeClass('a'); } });
You may need to do that within a each() call
if ($('div.x').css('height') === 'auto') { $('.y').removeClass('a'); }