关于jquery遍历已选中的checkbox事件,获取其值,批量进行删除



  function datadel() {
   var ids = '';
      $("input[name^=vendors]").each(function(index){
        if ($(this).is(":checked")) {
        ids += $(this).attr('value')+',';
              }               
           });
    
  }


猜你喜欢

转载自blog.csdn.net/qq_29115715/article/details/69371808