📌  相关文章
📜  jquery清空所有表单 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:25.839000             🧑  作者: Mango

代码示例2
// 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/