我有代码HTML
<input id="info[text1]" type="text" value="1"/> <br>
<input id="info[text2]" type="text" value="2"/> <br>
我想使用jquery选择id ='info [text1]',但我不能,所以你可以帮帮我!
答案 0 :(得分:15)
答案 1 :(得分:4)
以这种方式试试。
$('input[id="info[text1]"]')
答案 2 :(得分:4)