$(document).ready(function(){
alert("Hey remove this alert asap");
console.log("I am ready now");
$("#select-box").change(function(){
console.log("I am in select box change");
alert("hello");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select style="float:right;margin-right:10px;margin-top:5px" name="select-box" id="select-box" class=""><option value="">Select an option</option><option value="all">Select all</option><option value="none">Select none</option></select>
I am using jQuery on change event. Even if the option is changed the function is not getting triggered. No errors are showing up in developer tools as well. So i am struck here and not sure why the function is not getting triggered.
I am not able to see any console log messages or the alert as well. Can any one please correct me please.