jquery怎么删除 input
1 回答

天涯尽头无女友
TA贡献1831条经验 获得超9个赞
1、jQuery的remove()方法移除input
1 | $( "#inputID" ).remove(); //取得对象移除 |
2、jQuery的empty()方法移除input
1 | $( "#inputID" ).parent().empty(); //获取对象父级元素清空 |
- 1 回答
- 0 关注
- 585 浏览
添加回答
举报
0/150
提交
取消