<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery change() Method</h1>
<p>Choose other brand.</p>
<select>
<option>Honda</option>
<option>Hyundai</option>
<option>BMW</option>
</select>
<script>
$(document).ready(function(){
$("select").change(function(){
alert("select option was changed");
});
});
</script> </body>
</html>