I need to get all the elements in a page with position "absolute". I could not use $('*') because iterating on each element in the page is causing performance issue. There are nearly 8000 elements in my page and each time when i open the context menu i need to calculate the maximum z index. I have searched and i could not find an efficient solution. I am looking for solution as provided below,
$(function () {
$("*[style*='position:absolute']").each (function () {
alert($(this).html());
});
});
but, it only works if style is inline. But i need all the elements with "absolute" position when position is specified from CSS also.
Please advice. Thanks in advance.