<input id="spinner" class='selector' size=3>
<button id=b1 >Set to 100</button><button id=b2 >Set to 500</button>
JQuery
<script>
$(document).ready(function() {
$( "#spinner" ).spinner();
$('#b1').click(function(){
$( "#spinner" ).val(100) // set the value of spinner
})
////////
$('#b2').click(function(){
$( "#spinner" ).val(500) // set the value of spinner
})
////////
})
</script>