jQuery.fn.$each
(function ($) { $.fn.$each = function (callback) { return this.each(function () { return callback.call($(this)); }); }; })(jQuery);
ããããã®ãå®ç¾©ãã¦ããã¨ä¾¿å©ã
$("a").$each(function () { /\.jpg/.test(this.attr("href")) && window.open(this.attr("href")); });
ãããªæãã§ä½¿ãã