在JQuery中,为什么使用以下代码获取information Undefined
?JQuery - 字符串列表
JS - 右边部分是不确定的
var s = $("[name='CountAnswer']").val();
HTML
<input style="width:150px" type="text" id="CountAnswer_1_" name="CountAnswer[1]">
<input style="width:150px" type="text" id="CountAnswer_2_" name="CountAnswer[2]">
<input style="width:150px" type="text" id="CountAnswer_3_" name="CountAnswer[3]">
好吧,但我想这个保存为字符串,如何做到这一点的列表? – 2013-03-25 10:52:54
您可以使用地图,稍后检查我更新的答案。 – Adil 2013-03-25 10:53:52
只是提示,下次使用'console.log'而不是'alert'。当标签焦点改变时,这很烦人。 :| – hjpotter92 2013-03-25 11:29:21