For Select
$(“select#worker_id option”).removeAttr(“selected”);
or
$(this).select2(‘val’, ”);
For Unselect
$(this).select2(“val”,data_array_val);
Some help on php code
For Select
$(“select#worker_id option”).removeAttr(“selected”);
or
$(this).select2(‘val’, ”);
For Unselect
$(this).select2(“val”,data_array_val);