用jQuery选择非标准标签 [英] Selecting non-standard tag with jQuery

查看:83
本文介绍了用jQuery选择非标准标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用jQuery来选择< fb:like href =stackoverflow.com>< / fb:like> 标签? / p>

Is there a way to use jQuery to select the <fb:like href="stackoverflow.com"></fb:like> tag?

推荐答案

您可以在选择器中退出,如下所示: / p>

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.

这篇关于用jQuery选择非标准标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆