Skip to content

ReallyGood/safeQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

safeQuery

Silent failures such as bad selectors are annoying time-wasters. safeQuery warns you when jQuery calls return zero results, and when attr calls return undefined.

Tested with jQuery 1.7.2 and should work on all browsers. It's less than 400 bytes, just inline safeQuery.min.js after loading jQuery.

Demo

Check out the DEMO page, and type the following in your console: $('.oops') You can also try $('body').attr('madeup');

Footnotes

About

Warns you when jQuery calls return zero elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published