Hi,
I've been stumped on this problem for over a week :( Any insight into this problem would be hugely appreciated!
How do I link a jQuery UI number spinner/stepper (http://wiki.jqueryui.com/Spinner) so that a label text value changes as the spinner value increments or decrements?
...
<script type="text/javascript">
$(document).ready(function() {
$("#s1").spinner({max: 100, min: -100});
$("#s1").bind("spin", function() {
$("label1").innerText = $("#s1").spinner("value");
});
});
</script>
...
<body>
...
<p><label for="s1">Basic:</label> <input id="s1" name="value"/></p>
<p><label for="label1"></label></p>
...
</body>
Thanks!
Edit: In addition to the output issue, there appears to be problem with the handler itself. The handler doesn't execute when I spin/change the spinner.