ITeye博客

jquery 表单清空 很强大!

hesai_vip · 2012-09-25 11:01 · @Ajax · Web前端 · Markdown

很强大的表单清空,包括了所有情况:

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。