Answers for "select all checkbox jquery and get value in array jquery"

0

find all checkbox inside div jquery

$('#selectChb').click(function(){ 
     $(':checkbox').prop("checked", true);
});
Posted by: Guest on February-21-2021
0

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);
});
Posted by: Guest on July-24-2021

Code answers related to "select all checkbox jquery and get value in array jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language