JQuery Range Input Listener
Hey teniendo un poco de problemas jQuery y el rango de hmtl5. Intento obtener los valores a medida que cambian, pero el detector de eventos no los captura. Actualmente mi código es:
HTML
<code>html += '<li>Apply Credits: <input type="range" min="0" max="'+credits+'" name="discount_credits" id="discount_credits" /> <span>'+credits+'</span></li>' </code>
Y el JS es:
<code>$('#discount_credits').mousewheel( function() { alert('it changed!'); alert('new value = ' + $(this).val()); }); </code>
También he intentado
<code>$('#discount_credits').change( function() { alert('it changed!'); alert('new value = ' + $(this).val()); }); </code>
Ninguno parece funcionar. ¿Estoy haciendo algo mal?