开发者

Selecting non-standard tag with jQuery

开发者 https://www.devze.com 2023-01-25 10:44 出处:网络
Is there a way to use jQuery to select the <fb:l开发者_Python百科ike href=\"stackoverflow.com\"></fb:like> tag?You can escape the : in the selector, like this:

Is there a way to use jQuery to select the <fb:l开发者_Python百科ike href="stackoverflow.com"></fb:like> tag?


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.


You could also do $('[href=stackoverflow.com]')

0

精彩评论

暂无评论...
验证码 换一张
取 消