Answers for "jquery select2 multiple select all"

0

jquery select2 multiple select all

$("#checkbox").click(function(){
    if($("#checkbox").is(':checked') ){
        $("select > option").prop("selected","selected");
    }else{
        $("select > option").removeAttr("selected");
     }
});
Posted by: Guest on September-15-2020

Code answers related to "jquery select2 multiple select all"

Code answers related to "Javascript"

Browse Popular Code Answers by Language