Home >Web Front-end >JS Tutorial >How to delete input in javascript
Javascript method to delete input: 1. Delete input through "$(':input').remove();" method; 2. Through "$(':text').remove();" Ways to delete input and so on.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
Specific question:
How to delete input in jquery
<tr><td>{$vo.username}</td><td>{$vo.start}</td><td>{$vo.groupin}</td><td> <tr><td>{$vo.username}</td><td>{$vo.start}</td><td>{$vo.groupin}</td><td><tr><td>{$vo.reg_time}</td><td>{$vo.login_time}</td><td id="closes"><input type="checkbox" value="{$vo.id}" name="box[]"/></td></tr>
How to delete the 73a3ca28445b1c625f2086a50cb8c7df tag, and this is a php loop only Being able to delete the first one without deleting the others
is actually deleting the first input
Implementation method:
javascript deletes input
$(':input').remove(); or $(':text').remove(); or $('input[type="text"]').remove();
【Recommended learning: js basic tutorial】
The above is the detailed content of How to delete input in javascript. For more information, please follow other related articles on the PHP Chinese website!