I have an issue, where by I am doing a simple form validation, that needs some custom stuff that the validation plugin could not do for me. Basically, I have a name, email a
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.