Dear Paul,
Ok now I am getting it slowly sorry new student. How about this code can you disect for me
var suffix = /\[.*\]/.exec(field),
name = 'name' + suffix,
col3 = 'col3' + suffix,
col4 = 'col4' + suffix;
return {
required: filledFields([name, col3, col4]),
number: (field === col3)
}; and
var selectors = [];
$(array).each(function (i, name) {
selectors.push('[name="' + name + '"]:filled');
});
return selectors.join(', ');
Thank you so much.