/ Published in: jQuery
Example given in the book jQuery Enlightenment.
Create your own custom selectors in jQuery and manipulate as usual.
Expand |
Embed | Plain Text
$.expr[":"].positionAbsolute = function(el){ return $(el).css("position") === "absolute"; }; //Usage alert($(":positionAbsolute").length); //alerts number elements positioned absolutley //Or use a filter $("div").filter(function(){return $(this).css('position') === 'absolute';});
You need to login to post a comment.
