xiaolin-peter

1多选复选框

<input type=checkbox  name=id value=${entity.id}>

 

2.循环遍历

var courseIdList = [];
var courseList = $(\'input[type="checkbox"]:checked\');
courseList.each(function() {
    courseIdList.push($(this).prop(\'value\'));
});

 

分类:

技术点:

相关文章:

  • 2022-01-06
  • 2022-01-02
  • 2021-09-27
  • 2021-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-09-27
猜你喜欢
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-09-07
相关资源
相似解决方案