Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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
Php :: laravel packages 
Php :: php object into nested json object 
Php :: Displaying Custom Navigation Menus in WordPress Themes 
Php :: acf wordpress loop through and display blog posts order by date and type 
Php :: php conditionals 
Php :: validate either one field is required in laravel 
Php :: image upload in php code with databases 
Php :: php insert to mysql 
Php :: woocommerce update_status 
Php :: wp_customize image 
Php :: php date 
Php :: return json in php 
Php :: fillable vs guarded laravel 
Php :: codeigniter sanitize input field 
Php :: php library to convert html to amp 
Php :: php localhost 
Php :: set cookie on button click JavaScript 
Php :: How do i multiple variables in php 
Php :: php epoch conversion 
Php :: execute php mysql securely 
Php :: laravel resource 
Php :: php max int 
Php :: display php error 
Php :: what is lang in laravel 
Php :: add character after x characters in php 
Php :: laravel controller middleware example 
Php :: MySQL table in new page after click php 
Php :: Write a php program to perform sum of two numbers 
Php :: best custom email validation rule for laravel 
Php :: PHP sha1 — Calculate the sha1 hash of a string 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =