jQuery 学习笔记
Abstract
# 去除表单空值
```
$("input", "#submForm").each(function(){
$(this).val() == "" && $(this).remove();
})
```
或者
去除表单空值
$("input", "#submForm").each(function(){
$(this).val() == "" && $(this).remove();
})
或者
$("input:text[value=""]", "#submForm").remove();
串行化
var serialized = $("#submForm").serialize()
获取表单所有值$("form").serialize()
过滤
$(do
Login required to read the rest of the content
登录 to comment~
Guess you like
Recommended articles