如何使用jquery选择ID文本框数组 [英] How to selector ID textbox array using jquery
本文介绍了如何使用jquery选择ID文本框数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有代码HTML
<input id="info[text1]" type="text" value="1"/> <br>
<input id="info[text2]" type="text" value="2"/> <br>
我想使用jquery选择id ='info [text1]',但我不能,所以你可以帮助我吗?
I want to select id='info[text1]' using jquery but I can't, so can you help me!
推荐答案
你必须用 \\ $转义括号c $ c>
$("#info\\[text1\\]")
参见 http://api.jquery.com/category/selectors/ (第二段)
这篇关于如何使用jquery选择ID文本框数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文