SyntaxFix
Write A Post
Hire A Developer
Questions
A shorter answer from here, adapted to this question:
var arr = $('.requiredText'); arr.each(function(index, item) { var is_last_item = (index == (arr.length - 1)); });
Just for completeness.