blogsliuhui

清空form表单

// 真正清空 form 表单中的内容
$("input").not(":button, :submit, :reset, :hidden").val("").removeAttr("checked").remove("selected");

 

$(\':input\',\'#myform\') 

.not(\':button, :submit, :reset, :hidden\')
.val(\'\')
.removeAttr(\'checked\')
.removeAttr(\'selected\');

发表于 2016-11-02 09:40  Mr.liuhui  阅读(631)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-12-30
  • 2021-12-30
  • 2021-12-06
  • 2021-12-30
  • 2021-12-30
  • 2021-12-30
猜你喜欢
  • 2021-11-30
  • 2021-12-30
  • 2021-12-06
  • 2021-12-30
  • 2021-12-06
  • 2021-12-30
  • 2021-12-02
相关资源
相似解决方案