Reputation: 40653
Say I have the following:
$('#foo')
I'd like to know if that selector matches anything. How do I test for this?
Upvotes: 8
Views: 3470
Reputation: 34695
Use a Javascript Console to see what your method call returns. Type your command into the console, and then hit enter.
Shortcuts to open a JS console:
Upvotes: -2