jquery 表单清空

$(':input','#myform')
 .not(':button, :submit, :reset, :hidden')
 .val('')
 .removeAttr('checked')
 .removeAttr('selected');

 

posted @ 2015-09-01 14:32  微明Axel  阅读(137)  评论(0)    收藏  举报