Daily Archives for 2012年02月4日

.reset() form with jQuery

$(‘#formId’).reset(); // error: $(“#formId”).reset() is not a function     google 之后发现 function resetForm(id){ $(‘#’+id).each(function(){ this.reset(); }); //$(‘#’+id)[0].reset(); } 哈哈~~mark一下

04. 二月 2012 by dumpling