Read multiple jQuery.val() into array

后端 未结 3 413
臣服心动
臣服心动 2021-02-04 03:47

I have some code that looks like this that works just fine:

var info = [];
for (i = 0; i < 10; i++)
{
     info[i] = $(\'#info_\' + i).val();
}
3条回答
提交回复
热议问题