1<!-- Select2 CSS -->
2<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
3
4<!-- jQuery --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
5
6<!-- Select2 JS -->
7<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script>
1<!-- Dropdown -->
2<select id='selUser' style='width: 200px;'>
3 <option value='0'>Select User</option>
4 <option value='1'>Yogesh singh</option>
5 <option value='2'>Sonarika Bhadoria</option>
6 <option value='3'>Anil Singh</option>
7 <option value='4'>Vishal Sahu</option>
8 <option value='5'>Mayank Patidar</option>
9 <option value='6'>Vijay Mourya</option>
10 <option value='7'>Rakesh sahu</option>
11</select>
12
13<input type='button' value='Seleted option' id='but_read'>
14
15<br/>
16<div id='result'></div>