$('#addrow').click(function(){
$('input').not(':visible').slice(0,1).addClass('required');
$('.row').not(':visible').first().removeClass('hide');
}
I want the $('input').not(':visible') selected only if within $('row').not(':visible').
How do I chain these two together for the first line of the function, please? Thanks!
Try this:
You can also see I’ve used the
:hiddenselector, which is the equivalent of.not(":visible")