[英]remove complete href link tag from html
How to get 如何获得
EXPECTED INPUT : 预期输入:
<a href="#" id="r1A" role="button" tabindex="-1">
<input type="button" id="r1B" value="Back" role="option" aria-pressed="false" class="keyboard-enabled" tabindex="6">
</a>
<input type="submit" id="continue" value="CRA" name="continue" class="keyboard-enabled" tabindex="7">
converted to 转换成
<input type="button" id="r1B" value="Back" role="option" aria-pressed="false" class="keyboard-enabled" tabindex="6">
using JQUERY replace or remove. 使用JQUERY替换或删除。 Please suggest.
请提出建议。
您可以使用$ .fn.unwrap
$('#r1B').unwrap();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.