Please try this code to add the 'onBeforeSpin' event to the numberspinner plugin.
<script type="text/javascript">
(function($){
var spin = $.fn.numberspinner.defaults.spin;
$.extend($.fn.numberspinner.defaults, {
spin: function(down){
var opts = $(this).numberspinner('options');
if (opts.onBeforeSpin){
opts.onBeforeSpin.call(this, down);
}
spin.call(this, down);
}
});
})(jQuery);
</script>