Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery checkbox group selected value

var values = new Array();
$.each($("input[name='user_group[]']:checked"), function() {
  values.push($(this).val());
  // or you can do something to the actual checked checkboxes by working directly with  'this'
  // something like $(this).hide() (only something useful, probably) :P
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #checkbox #group #selected
ADD COMMENT
Topic
Name
5+6 =