Navigation

Home
Search
Submit A Resource
Contact Us
About Functionn

Subscription Options


Subscribe By Email (265+)


Lists


Archives

Jul 17, 2012

Author: Hirvesh Posted At: 7/17/2012 Tags: , , , ,

safeQuery - Notification For Bad Selectors When Using jQuery

Share:
safeQuery warns you when jQuery calls return zero elements.  Silent failures such as bad selectors are annoying time-wasters.  Try the following in the console: $('.oops')

If the above class oops  is not present on the page, safeQuery will throw the error jQuery Selector ".oops" returned no matches

safeQuery has been tested with jQuery 1.7.2 and should work on all browsers. Just add the safeQuery script after loading jQuery.  safeQuery is also available as a bookmarklet which can load it onto any page.


Requirements: jQuery
Demohttp://reallygood.co.il/plugins/safeQuery/
License: MIT License

Daily Posts, Be Updated, Subscribe:

Want Free Web Resources? Enter Your Email And We'll Send It To You - Daily! (265+ Subscribers)

Yup, it's that straight forward! Enter your email address below and we'll send you the latest web resources to your inbox, everyday. We don't do spam. Ever.

Trending Posts On Functionn This Week

Share:

Other Interesting Resources:

0 comments:

Post a Comment

 


Recent Posts

Popular Categories



Popular Components



Popular Licenses