87,910
社区成员
发帖
与我相关
我的任务
分享
<input type='text' name='sort[]' id='sort[]' value='1'>
<input type='text' name='sort[]' id='sort[]' value=2'>
<input type='text' name='sort[]' id='sort[]' value='3'>
<input type='text' name='sort[]' id='sort[]' value='4'>
<input type='text' name='sort[]' id='sort[]' value='5'>
<input type='text' name='sort[]' id='sort[]' value='6'>
var valArr = new Array;
$("input[name='menu_order[]']").each(function(i){
valArr[i] = $(this).val();
});
var priv = valArr.join(',');
alert(priv);
});