tag:blogger.com,1999:blog-3474748080814775582.post5918446723763913527..comments2021-04-20T11:20:48.148-05:00Comments on Javascript, jQuery and other Junk: jQuery Selectors - Adding a :contains exact matchRob Garrisonhttp://www.blogger.com/profile/03268017297500430302noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-3474748080814775582.post-21310670836756242522012-08-30T07:31:15.053-05:002012-08-30T07:31:15.053-05:00I've updated the code in this post to make the...I've updated the code in this post to make these selectors work with the changes in jQuery 1.8. Please note that the :containsRegex() selector will need quotes wrapped around the regex to prevent errors.Rob Garrisonhttps://www.blogger.com/profile/03268017297500430302noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-74214669404416311352012-08-22T12:50:45.354-05:002012-08-22T12:50:45.354-05:00This comment has been removed by the author.Show Showhttps://www.blogger.com/profile/11910939369746609170noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-45509811256659629502012-08-22T10:50:28.633-05:002012-08-22T10:50:28.633-05:00It should work. Look at the demo above, it is find...It should work. Look at the demo above, it is finding the table cells using a class name + the custom contains selector.Rob Garrisonhttps://www.blogger.com/profile/03268017297500430302noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-4031003846147323792012-08-22T10:40:25.525-05:002012-08-22T10:40:25.525-05:00This pretty neat. It works but is it possible to d...This pretty neat. It works but is it possible to do something like $('.red:containsExact("Motion")) I've tried that and seems like it doesn't allow to use a class or id infront of it.Show Showhttps://www.blogger.com/profile/11910939369746609170noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-78560963012128919202012-08-16T11:33:57.712-05:002012-08-16T11:33:57.712-05:00Thank you so much!, this is exactly what I was loo...Thank you so much!, this is exactly what I was looking for, put it in my code, tested, it worked like a charm.Fabian Muñozhttps://www.blogger.com/profile/11727747057005646882noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-41985440267613273542012-02-22T20:17:51.098-06:002012-02-22T20:17:51.098-06:00Like!Like!sglessardhttps://www.blogger.com/profile/03109528532197423727noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-62219805969335924532011-07-01T18:43:56.668-05:002011-07-01T18:43:56.668-05:00awesome. I wrote a demo using this that will keep ...awesome. I wrote a demo using this that will keep growing into an interesting plugin. <br /><br />http://jsfiddle.net/kneebreaker/jYHNL/<br /><br />This is great!Chris Colemanhttps://www.blogger.com/profile/13442516671280051957noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-85143607292131711572011-03-28T15:20:51.638-05:002011-03-28T15:20:51.638-05:00Thanks. Like it a lot.Thanks. Like it a lot.Jessicahttps://www.blogger.com/profile/17352070805116513961noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-11062158688822017762010-09-10T01:31:38.389-05:002010-09-10T01:31:38.389-05:00Good extension. Thanks a lot.Good extension. Thanks a lot.Gopi Sundharamhttps://www.blogger.com/profile/10315902438805077109noreply@blogger.comtag:blogger.com,1999:blog-3474748080814775582.post-42094889431865471442010-07-10T12:23:52.386-05:002010-07-10T12:23:52.386-05:00Updated the script by changing the "$(a).text...Updated the script by changing the "$(a).text()" into "a.innerHTML" to prevent triggering on nested text.Rob Garrisonhttps://www.blogger.com/profile/03268017297500430302noreply@blogger.com