option with search php

Solutions on MaxInterview for option with search php by the best coders in the world

showing results for - "option with search php"
Hugo
22 Oct 2019
1<html>
2<head>
3 <title>Select2</title>
4 <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css" rel="stylesheet" />
5 <script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>
6 <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"></script>
7</head>
8<body>
9<form method="POST">
10 <select id="provinsi" name="provinsi">
11  <option ></option>
12  <option value="ACEH">ACEH</option>
13  <option value="RIAU">RIAU</option>
14  <option value="JAMBI">JAMBI</option>
15  <option value="SUMATERA UTARA">SUMATERA UTARA</option>
16  <option value="BENGKULU">BENGKULU</option>
17  <option value="LAMPUNG">LAMPUNG</option>
18  <option value="DKI JAKARTA">DKI JAKARTA</option>
19  <option value="JAWA BARAT">JAWA BARAT</option>
20  <option value="JAWA TENGAH">JAWA TENGAH</option>
21  <option value="JAWA TIMUR">JAWA TIMUR</option>
22 </select>
23</form>
24<script type="text/javascript">
25 $(document).ready(function() {
26     $('#provinsi').select2();
27 });
28</script>
29</body>
30</html>