Get value of checked checkboxes into a list


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var users = new Array();
  2.  
  3. $("input:checkbox[name=user]:checked").each(function(){
  4. users.push(this.value)
  5. })

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.