I Want To Use Multiple Select2 Onchange Function In A Dynamic Way
I want to put select2 function in my code but don't know where to put that .select2() function i have this .append($()) my mode
Solution 1:
Insert CSS & JS file in your page then after JS file insert this code in your page.
<scripttype="text/javascript">
$(document).ready(function() {
$('#neww').select2();
});
</script>
To update options, see below code.
var option = newOption("text", "id");
$("#neww").append(option);
$("#neww").trigger("change");
Post a Comment for "I Want To Use Multiple Select2 Onchange Function In A Dynamic Way"