Spin on F5 Testing
by CyrixInstead
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 id="spinner" name="value">
JavaScript
var spinner = $( "#spinner" ).spinner({
start: function( event, ui ) {
console.log("Start: " + this.value);
},
spin: function( event, ui ) {
console.log("Spin Old Val: " + this.value);
console.log("Spin New Val: " + ui.value);
console.log("old = new? " + this.value == ui.value);
if (ui.value == this.value) { //Spinner triggered by F5 so don't spin anyway
return false;
}
},
stop: function( event, ui ) {
console.log("Stop: " + this.value);
}
});