I want to call a function on a change of a dropdown and change event will be fired with jquery........................................................................................................................................................................................................................................
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
function a(a) {
alert('Funtion A');
}
$(document).ready(function(){
$('#sel').change(function(){
a('a')
})
$('button').click(function(){
$('#sel').click()
$('#sel').val('B');
})
});
</script>
</head>
<body>
<select id="sel" >
<option>A</option>
<option>B</option>
<option>C</option>
</select>
<button type="button">Change</button>
</body>
</html>