Using jQuery, how would you find elements which have a particular style (eg: float: left), regardless of whether it's an inline style or one defined in a CSS file?
float: left
Using the filter function:
$('*').filter(function() { return $(this).css('float') == 'left'; });
Replace '*' with the appropriate selectors for your case.
2.1m questions
2.1m answers
60 comments
57.0k users