//获取所有选中的CheckBox的id
    function getCheckBox() {
        var spCodesTemp = "";
        $("input:checkbox[name=IsOnSell]:checked'").each(function(i) {
            if (0 == i) {
                spCodesTemp = $(this).attr("id");
            } else {
                spCodesTemp += ("," + $(this).attr("id"));
            }
        });
        alert(spCodesTemp);
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-07-30
相关资源
相似解决方案