I have the below html code:
<select class="1-100"></select>
I am using Jquery to populate the value of above select option:
$(function(){
var $select = $(".1-100");
for (i=1;i<=100;i++){
$select.append($('<option></option>').val(i).html(i))
}
});
This gives me a drop down with values from 1 to 100. I want to trigger a function when I select a number from this drop down. The function should return the number I selected in the dropdown(displayed on window). How I accomplish this?