<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/...; rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/s...;></script>
<select class="js-example-basic-single" name="state">
<option value="AL">Alabama</option>
...
<option value="WY">Wyoming</option>
</select>
// In your Javascript (external .js resource or <script> tag)
$(document).ready(function() {
$('.js-example-basic-single').select2();
});
Code Example |
---|
Php :: and php |
Php :: laravel create request |
Php :: laravel dump] |
Php :: array of dates laravel |
Php :: php shorten string with dots |
Php :: PHP min() and max() |
Php :: php check if query succeeded |
Php :: type casting in php |
Php :: Instalar Lamp server en Ubuntu |
Php :: symfony set timezone |
Php :: laravel upload base64 image |
Php :: php receive post |
Php :: php full form |
Php :: laravel drop foreign column |
Php :: get only the first two word from a string php |
Php :: mysqli_test |
Php :: write php online |
Php :: unset php |
Php :: login with email and phone laravel |
Php :: adminlte 3 laravel |
Php :: laravel soft delete example |
Php :: Get all Country List using php |
Php :: Creating default object from empty value |
Php :: laravel make model along with its controller and migration file |
Php :: laravel get age from date |
Php :: date_default_timezone_set(): timezone id |
Php :: special characters in php |
Php :: laravel realation with has |
Php :: rename migration laravel |
Php :: php check if int is odd |