Jquery 如何称呼自定义标记?
我了解我可以寻址ID或类,例如:Jquery 如何称呼自定义标记?,jquery,tags,Jquery,Tags,我了解我可以寻址ID或类,例如: <img id="htmlTag"> 或 。。。但我如何解决这个问题: <img caption="htmlTag"> 谢谢。您可以利用jQuery的优势,比如: $img[caption='htmlTag'] 您可以利用jQuery的优势,比如: $img[caption='htmlTag'] 您想要这个: $('img[caption="htmlTag"]') 你想要这个: $('img[caption="htmlTag"]')
<img id="htmlTag">
或
。。。但我如何解决这个问题:
<img caption="htmlTag">
谢谢。您可以利用jQuery的优势,比如:
$img[caption='htmlTag'] 您可以利用jQuery的优势,比如: $img[caption='htmlTag'] 您想要这个:
$('img[caption="htmlTag"]')
你想要这个:
$('img[caption="htmlTag"]')
<img caption="htmlTag">
$('img[caption="htmlTag"]')