Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery val()</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function() { $("#language").change(function() { var val = $(this).val(); $("#response").html(val); }); }); </script> </head> <body> <select name="language" id="language" class="form-control" style="width:40%"> <option value=""> -- Select --</option> <option value="Php">Php</option> <option value="Html">Html</option> <option value="Css">Css</option> <option value="JavaScript">JavaScript</option> <option value="Jquery">Jquery</option> </select><br /> <span id="response"></span><br /> </body> </html>