disable the submit button when the name and surname fields are empty jquery code example
Example 1: jquery don't empty specific form field after submit
$('#clear').click(function(){
$('#parent > input:text:not(".ignore")').val('');
$("input:text:not('#objective_time_period, #subjective_time_period')").val('');
});
Example : http://jsfiddle.net/3zVyv/1/
Example 2: jquery don't empty specific form field after submit
form.find('textarea,input,select').not('input[name="INPUT_NAME_1"],input[name="INPUT_NAME_2"]').val('');