Answers for "Serachable dropdown laravel blade"

0

Serachable dropdown laravel blade

<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();
});
Posted by: Guest on September-06-2021

Browse Popular Code Answers by Language