/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$.extend($.expr[':'], {
over100pixels: function(a) {
return $(a).height() > 100;
}
});
$('.box:over100pixels').click(function() {
alert('The element you clicked is over 100 pixels high');
});
URL: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx#tip15
Comments
 Subscribe to comments
                    Subscribe to comments
                
                