Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

select2 in modal not work

//replace it with your script
<script>
    $('#mySelect2').select2({
        dropdownParent: $('#myModal')
    });
</script>
Comment

select2 in modal

<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
    ...
    <select id="mySelect2">
        ...
    </select>
    ...
</div>

...

<script>
    $('#mySelect2').select2({
        dropdownParent: $('#myModal')
    });
</script>
Comment

select2 on modal

data-control="select2" data-placeholder="Select payment method" data-dropdown-parent=“#modal”
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript get all cookies 
Javascript :: change input to required jquery 
Javascript :: allow paste js code 
Javascript :: new MiniCssExtractPlugin({ ^ TypeError: MiniCssExtractPlugin is not a constructor 
Javascript :: js split array in half 
Javascript :: replace multiple spaces with single space javascript 
Javascript :: scroll to element jquery 
Javascript :: loop array backwards javascript 
Javascript :: objectid is not defined node js mongodb 
Javascript :: javascript replace line breaks with br 
Javascript :: remove property mongodb 
Javascript :: dynamics crm javascript set field visible 
Javascript :: add site url validation regex 
Javascript :: dino game hack 
Javascript :: sort array by string length javascript 
Javascript :: js replace space with dash 
Javascript :: jquery submit form ajax 
Javascript :: js set attribute aria-expanded 
Javascript :: how to link javascript to html and css 
Javascript :: number with commas js 
Javascript :: javascript set local storage value 
Javascript :: prettier ignore line 
Javascript :: js async anonymous function 
Javascript :: allow cross origin node 
Javascript :: get last day of month typescript 
Javascript :: date add 1 hour javascript 
Javascript :: get html attribute value in js 
Javascript :: give height to Image in nextjs 
Javascript :: chart js hide legend 
Javascript :: delete with unlinksync node 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =