tag:blogger.com,1999:blog-8980734269859237005.post4266186126138919380..comments2024-01-30T01:03:21.768-08:00Comments on DevCurry: Filter Image Types Using jQuerySuprotim Agarwalhttp://www.blogger.com/profile/08349831623922214390noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8980734269859237005.post-32265599368002324652009-07-20T07:40:14.700-07:002009-07-20T07:40:14.700-07:00Seems like using jQuery's filter() and regex i...Seems like using jQuery's filter() and regex is a little simpler and more extensible:<br /><br />$('img').filter(function(){ return this.src.match(/.gif$/i); }).hide();<br /><br />Or if you plan on hiding different extensions:<br />function hideImagesByExt(ext) {<br /> $('img').filter(function(){ return this.src.match(new RegExp('.' + ext + '$', 'i'); Anonymoushttps://www.blogger.com/profile/08472608748473815539noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-89154533009582813732009-06-22T21:18:09.932-07:002009-06-22T21:18:09.932-07:00tis is a wonderful tip i can use in my image viewe...tis is a wonderful tip i can use in my image viewer. thank you million times.Jesús Maríanoreply@blogger.com