JavaScript
Article

jquery is empty check using a selector

By Sam Deering

Quick jQuery snippet is empty check using a selector. Keep sharp.

//..inside each loop
(!$(this).is(':empty'))
//...

No Reader comments

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.