Loop on jQuery object and return value


/ Published in: JavaScript
Save to your folder(s)

Returning a boolean inside of jQuery's $.each() function will only break the loop. To get a return value, you can convert the jQuery object to array and use a regular for loop in javascript.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.