2 に答える
0
Do this way:-
$("#submit").click(function(){
$("input[class='required']").each(function(){
if ($.trim($(this).val()).length == 0)
$(this).val('Not Applicable');
});
});
Once validation is OK then go for submitting the form.
于 2012-05-03T12:48:32.803 に答える
0
I think I may have worked it out - can you confirm if this logic is correct?
$("#submit").click(function(){
$("input[class='required']").each(function(){
if ($.trim($(this).val().length == 0) && $(this).attr('disabled'))
$(this).val('Not Applicable');
});
});
于 2012-05-04T03:32:49.203 に答える