Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get selected checkbox value array

$("#merge_button").click(function(event){
    event.preventDefault();
    var searchIDs = $("#find-table input:checkbox:checked").map(function(){
      return $(this).val();
    }).get(); // <----
    console.log(searchIDs);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #selected #checkbox #array
ADD COMMENT
Topic
Name
9+4 =