might be a silly question but im really stuck..Nothing is happening with this code. It's like the js isnt attached properly? Not sure why
add.js
$('select').on('change', function() {
alert( this.value );
})
html:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="add.js"></script>
</head>
<select>
<option value="1">One</option>
<option value="2">Two</option>
</select>