js里面获取相同class的value

var service_id = {};
$(".service_id").each(function(index, el) {
service_id[index] = el.value;

});

posted @ 2017-12-13 09:36  JiangBigShrimp  阅读(2344)  评论(0编辑  收藏  举报