$('#box').spinner({
required:true,
value:2,
min:1,
max:1000000,
onSpinUp:function(){
$('#box').spinner('setValue',parseInt($('#box').spinner('getValue'))+1);
},
onSpinDown:function(){
$('#box').spinner('setValue',parseInt($('#box').spinner('getValue'))-1);
},