看板 Web_Design 關於我們 聯絡資訊
我有以下html <input type="test" name="data[a]" value="a" /> <input type="test" name="data[b]" value="b" /> <input type="test" name="data[c]" value="c" /> 我要怎麼用jquery找到 name="data[b]"裡面的值 $('form select[name=data[b]]') 似乎是不可行 自問自答 $("form select[name*='[b]']") -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.32.228.158 ※ 編輯: MacMini 來自: 114.32.228.158 (08/04 16:37)
UniFish:這個答案是可以run的嗎? 08/04 16:44
MacMini:可以 08/04 17:32
danshu:$("input[name='data[b]']").val() 08/05 02:06