Hi guys I’ve spent hours trying to solve this small problem, I want to use this jQuery knob to trigger different jQuery animations at each point. I can’t seem to detect the value?
<script>
$(document).ready(function(){
$('.knob').bind('change', function(){
var newvalue = $(this).val();
if (newvalue == 50) {
alert("newvalue is 50!");
};
});
});
</script>
<input class="knob" data-width="530" data-min="0" data-max="67" data-angleOffset="0" data-thickness=".1" data-displayPrevious="true">
How could I do this? Hope you can help!
1 Answer