请描述如何使用jQuery使用我的自定义属性来引用标签。
我有这样的标签:
<a user="kasun" href="#" id="id1">Show More...</a>
我想引用标签而不引用ID。喜欢
$('#id1')
我想像这样引用它:
$('#user')//this is wrong. I mentioned this code only for understand what I mean.
谢谢你。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句