1$(".reset").click(function() {
2 $(this).closest('form').find("input[type=text], textarea").val("");
3});
1// Bind an event handler to the "click" JavaScript event
2$('#clear').click(function(){
3 // Selects all elements of type text and clear all
4 $('#parent > input:text:not(".ignore")').val('');
5 // For excluding Multiple inputs
6 $("input:text:not('#objective_time_period, #subjective_time_period')").val('');
7});
8
9Example : http://jsfiddle.net/3zVyv/1/
1form.find('textarea,input,select').not('input[name="INPUT_NAME_1"],input[name="INPUT_NAME_2"]').val('');