jQuery 学习笔记
摘要
# 去除表单空值
```
$("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
剩余内容需要登录才能阅读
登录 后才能评论~
猜你喜欢
推荐了几个