var arrInputValues = new Array(); $("input.someclass").each(function() { arrInputValues.push($(this).val());});//该片段来自于http://www.codesnippet.cn/detail/22112012603.html
来源: http://www.codesnippet.cn/detail/22112012603.html