我有一個表,其中,I有複選框等:如何在jquery中選擇多維輸入的列?
<input id="id_answer[text_singleline][0][1]" type="checkbox" value="1" name="answer[text_singleline][0][1]">
其中第二索引[0]是行,第三索引[1]是列。我需要選擇列中的所有複選框,如下所示:
$('#id_answer\\[text_singleline\\]\\[*\\]\\[0\\]')
jQuery有可能嗎?
謝謝,我標記您的解決方案,而不是Frederics的(在這種情況下工作過),但是這是比較普遍的做法。 – Bruce 2012-03-21 22:00:57