Is there a way to use jQuery to select the <fb:like href="*.com"></fb:like>
tag?
有没有办法使用jQuery来选择
2 个解决方案
#1
6
You can escape the :
in the selector, like this:
您可以在选择器中转义:,如下所示:
$("fb\\:like")
You can test it out here. Though...I can't guarantee this will work in every browser.
你可以在这里测试一下。虽然......我不能保证这会在每个浏览器中都有效。
#2
0
You could also do $('[href=*.com]')
你也可以做$('[href = *.com]')
#1
6
You can escape the :
in the selector, like this:
您可以在选择器中转义:,如下所示:
$("fb\\:like")
You can test it out here. Though...I can't guarantee this will work in every browser.
你可以在这里测试一下。虽然......我不能保证这会在每个浏览器中都有效。
#2
0
You could also do $('[href=*.com]')
你也可以做$('[href = *.com]')