开发者

Selecting non-standard tag with jQuery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜