I'm going through a form checking values but I need to stop before a specific element (#before)
$('#before').closest('form').find('.reqd').each(function() {
//chacks input
});
I need this to stop before or even better after it reaches #before. I read about nextUntil() but it seems only to work for sibling elements. I need to check all .reqd elements in the form before #before
I bet I'm missing some really simple way to do it.