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/