? +3 jquer...">

Choosing a custom tag using jQuery

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

+3
source share
2 answers

You can avoid :in the selector, for example:

$("fb\\:like")

You can check it out here . Although ... I can not guarantee that this will work in every browser.

+6
source

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

0
source

Source: https://habr.com/ru/post/1775092/


All Articles