I am using .change() function to check for changes inside an input and give an alert if a change occurred but I must be doing something wrong cause this isn't working :
$(document).ready(function() {
var sizes = ["0", "1", "2", "3", "4", "5", "5", "6", "7"];
$("#slider").slider({
orientation: "vertical",
range: "min",
animation:false,
min: 0,
max: 8,
value: 0,
slide: function(event, ui) {
$('.convert').val(sizes[ui.value]);
}
});
$('.convert').change(function(e){
alert("works?");
});
$('.convert').keypress(function(e){
alert("works?");
});
});