删除或隐藏锚文本 [英] Remove or Hide Anchor Text
本文介绍了删除或隐藏锚文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法隐藏或移除锚文本
I am not able to hide or remove anchor text
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("a:contains('go to google')").remove();
});
</script>
<a href="http://google.com">go to google</a>
推荐答案
(document).ready(function(){
(document).ready(function () {
(a:contains('go to google'))。remove();
});
< / script>
< a href =http://google.com>转到Google< / a>
("a:contains('go to google')").remove(); }); </script> <a href="http://google.com">go to google</a>
这可能会对你有所帮助......
find-one-a-tag-and-remove-text [ ^ ]
this might help you ...
find-one-a-tag-and-remove-text[^]
这篇关于删除或隐藏锚文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文