I have 2 radio controls:
<fieldset id="sort">
<label for="sort">Sort: </label>
<input class="sortDirection" type="radio" id="asc" name="sortDirection"><label for="asc">asc</label>
<input class="sortDirection" type="radio" id="desc" name="sortDirection"><label for="desc">desc</label>
</fieldset>
Here's the jquery I am using:
$(document).ready(function(){
$('#sort').buttonset();
});
$('#asc').on("change", function(event){
alert("CHANGE EVENT!");
});
I also tried (with same results):
$('#sort input[type="radio"]').on("change", function(event){
alert("CHANGE EVENT!");
});
The alert is never executed. What am I doing wrong here?
change
event? – Varitype