Ouvinte de entrada do intervalo JQuery

Ei tendo um pequeno problema jquery e o intervalo hmtl5. Eu estou tentando obter os valores como eles mudaram, mas o ouvinte de evento não está capturando isso. Atualmente meu código é:

HTML

<code>html += '<li>Apply Credits: <input type="range"  min="0" max="'+credits+'" name="discount_credits" id="discount_credits" /> <span>'+credits+'</span></li>'
</code>

E o JS é:

<code>$('#discount_credits').mousewheel( function() { 
        alert('it changed!'); 
        alert('new value = ' + $(this).val()); 
    });
</code>

Eu também tentei

<code>$('#discount_credits').change( function() { 
            alert('it changed!'); 
            alert('new value = ' + $(this).val()); 
        });
</code>

Nem parece funcionar. Estou fazendo algo errado?

questionAnswers(5)

yourAnswerToTheQuestion