Answers for "get id .mutiple option values select2 jquery"

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 "get id .mutiple option values select2 jquery"

Browse Popular Code Answers by Language