Server IP : 162.240.98.243 / Your IP : 3.133.157.142 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<!doctype html> <html> <head> <title>How to delete file with jQuery AJAX</title> <script src='jquery-3.2.1.min.js' type='text/javascript'></script> <script src='select2/dist/js/select2.min.js' type='text/javascript'></script> <link href='select2/dist/css/select2.min.css' rel='stylesheet' type='text/css'> </head> <body> <!-- Dropdown --> <select id='selUser'> <option value='0'>-- Select User --</option> <option value='1'>Yogesh singh</option> <option value='2'>Sonarika Bhadoria</option> <option value='3'>Anil Singh</option> <option value='4'>Vishal Sahu</option> <option value='5'>Mayank Patidar</option> <option value='6'>Vijay Mourya</option> <option value='7'>Rakesh sahu</option> </select> <!-- Script --> <script> $(document).ready(function(){ // Initialize select2 $("#selUser").select2(); // Read selected option $('#but_read').click(function(){ var username = $('#selUser option:selected').text(); var userid = $('#selUser').val(); $('#result').html("id : " + userid + ", name : " + username); }); }); </script> </body> </html>