jquery empty form code example

Example 1: form reset jquery

$('#form_id').trigger("reset");

Example 2: jquery reset form

$('.login-form').trigger("reset");

Example 3: jquery clear form values

$(".reset").click(function() {
    $(this).closest('form').find("input[type=text], textarea").val("");
});

Example 4: empty form elements except jquery

// Bind an event handler to the "click" JavaScript event
$('#clear').click(function(){
    // Selects all elements of type text and clear all
    $('#parent > input:text:not(".ignore")').val('');   
  	// For excluding Multiple inputs 
  	$("input:text:not('#objective_time_period, #subjective_time_period')").val('');
});

Example : http://jsfiddle.net/3zVyv/1/