gpt4 book ai didi

javascript - 如何使用 jquery 或 javascript 从 html 表中删除文本框而不丢失文本框值

转载 作者:太空宇宙 更新时间:2023-11-04 14:13:41 25 4
gpt4 key购买 nike

<分区>

我有一个表,其中有一列包含文本框,我需要使用 jQuery/JavaScript 删除文本框,同时保留文本框值。

到目前为止我已经尝试过的事情:

// removes the entire textboxes and the values inside it 
mytable.find('input:text').remove();

//doesnt seem to work
$('#mytable').find('input:text').contents().unwrap();

我知道它与父/子节点有关。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com