Revision: 22376
Updated Code
at January 11, 2010 11:13 by 1man
Updated Code
$.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';});
Revision: 22375
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 11, 2010 10:34 by 1man
Initial Code
$.expr[":"].positionAbsolute = function(el){ return $(el).css("position") === "absolute"; }; //Usage alert($(":positionAbsolute").length); //alerts number elements positioned absolutley
Initial URL
Initial Description
Example given in the book jQuery Enlightenment. Create your own custom selectors in jQuery and manipulate as usual.
Initial Title
Custom jQuery selector
Initial Tags
jquery
Initial Language
jQuery