0

Jquery how to find floating elements in DOM?

 float: left/right

Clearfix is related to element float. That is not needed in our case. How to find which elements floating in DOM?

eastwater
  • 4,624
  • 9
  • 49
  • 118

1 Answers1

0

You can use .filter() and call the css() method to get the value of the float style. For instance, this will find all divs with float: left

$('div').filter(function() {
    return $(this).css('float') == 'left'
})
Barmar
  • 741,623
  • 53
  • 500
  • 612