Yes, you can use custom jquery selectors as follows:
//Add custom selector that returns all objects taller than 200px //See http://www.bennadel.com/blog/1457-How-To-Build-A-Custom-jQuery-Selector.htm $.extend($.expr[':'], { over200pixels: function(a) { return $(a).height() > 200; } }); // Seclect all images taller than 200px // Set height to 200px using .css() method // See http://api.jquery.com/css/ $('img:over200pixels').css("height","200px");
A loan for which a loan must be granted: jQuery Tips and Tricks
Online demo: http://jsfiddle.net/hvq5m/
source share