【发布时间】:2013-09-14 04:10:28
【问题描述】:
我可以在 jquery mobile 中将 id 与 "(" 和 ")" 一起使用吗?
例如:
<div id="RSI(3,4)">
</div>
我已经尝试过那个 id 并且想在 js 中访问那个元素。
$("#RSI(3,4)").html("some text");
但是没有用。
【问题讨论】:
-
转义特殊字符 \\(... \\) api.jquery.com/category/selectors
标签: javascript jquery html jquery-mobile