jQuery API

Utilities


To see if there are elements in your current jQuery object, check .length. For example: if ($('.myclass').length){