Spinner bug
Spinner returns incorrect data at min/max
by Ryan Neufeld
HTML
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<input type="text" id="rows" min='1' max='4' value="3"/>
<div><span id="output">3</span> (This should be between 1 and 4)</div>
CSS
span {
font-weight: bold;
}
JavaScript
$(function(){
$("#rows").spinner({
spin: function(ev, ui) {
$('#output').html(ui.value);
}
});
});