hi all i am binding my dropdown with Jquery-Select2. Its working fine but now i need to Bind my Multi-Value selectBox by using Jquery-Select2.
M
To Select all
$('select[name=eventsFilter]').find('option').attr('selected', true);
$('select[name=eventsFilter]').select2();
To UnSellect all
$('select[name=eventsFilter]').find('option').attr('selected', false);
$('select[name=eventsFilter]').select2("");
Use multiselect function as below.
$("#drp_Books_Ill_Illustrations").val(["val1", "val2"]).trigger("change");