Validation: Clear bad fields on submit help

Validation: Clear bad fields on submit help

Can't figure this one out. I have the jquery validation plugin (version 1.9 from bassistance) successfully validating all form inputs when submit is clicked. But when submit is clicked, I also want to clear out the data on any inputs containing invalid text. Invalid inputs are assigned the class ".incomplete"

    $('#button').click(function(){
           
$('.incomplete').val('');

});

The above code makes the "Submit" button clear invalid inputs the second time it is clicked. I assume checking for the ".incomplete" class is why it needs a second click to work, but is there an alternative? Sorry if there is an obvious solution -- I knew nothing about jQuery three weeks ago.

Full form, for those curious: http://pastie.org/4704511

Thanks eveyone