Here are two options: $('div').each(function() { if ($(this).css('position') == 'absolute') { //do something with this } });
/////////////////////////////////////////////// var $divPosAbs = $('div').filter(function() { return ($(this).css('position') == 'absolute'); }); //do something with $divPosAbs - Richard On Sat, Oct 17, 2009 at 5:33 AM, David .Wu <chan1...@gmail.com> wrote: > > <div></div> > <div style="position: absolute"></div> > > $('div').each(function() { > // How to know the div have position property or not? > }); >