Assuming there's a 1:1 relationship between the labels and inputs, you could reference the index to filter the input from your selection.
$('.formFieldLabel').each(function( index ) {
var labels = $(this).text();
if( !$(this).val() ) {
$(this).parentsUntil("table").find('.formFieldText, .formTextArea').eq(index).val(labels);
};
})
Edit!
If you can make changes to the mark up, I'd recommend updating your text to use <label>
elements. Point the for
attribute to your input (making it more accessible) and simplifying your jQuery loop. Something like this:
HTML
<td class="formFieldLabel" >
<label for="form_0048_fld_1_fn">First Name</label>
</td>
JavaScript
$('label').each(function(index) {
var labels = $(this).text();
if( !$(this).val() ) {
$('#' + $(this).attr('for')).val(labels);
};
})