<button type='button' id=b_disable class='btn btn-success btn-sm'>Disable()</button>
<button type='button' id=b_enable class='btn btn-success btn-sm'>Enable()</button>
<input id="spinner" class='selector' value=12 size=2>
<script>
$(document).ready(function() {
////////
$( "#spinner" ).spinner();
////////////
$("#b_disable").click(function() {
$( "#spinner" ).spinner("disable");
})
////////////
////////////
$("#b_enable").click(function() {
$( "#spinner" ).spinner("enable");
})
////////////
})
</script>