Demo of Spinner : start stop Events

HTML

<input id="spinner" class='selector' value=12 size=3>
<div id=d1></div>

JQuery

<script>
$(document).ready(function() {
///////
$( "#spinner" ).spinner(
{
start: function( event, ui ) {
$('#d1').html("Spinner has started ");
},
stop: function( event, ui ) {
$('#d1').html("Spinner has stopped ");
}
/////////
})
/////////
})
</script>

Full Code

<html>
<head>
<title></title>
</head>

<input id="spinner" class='selector' value=12 size=3>
<div id=d1></div>

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<link href="https://code.jquery.com/ui/1.12.1/themes/blitzer/jquery-ui.css" rel="stylesheet">

<script>
$(document).ready(function() {
///////
$( "#spinner" ).spinner(
{
start: function( event, ui ) {
$('#d1').html("Spinner has started ");
},
stop: function( event, ui ) {
$('#d1').html("Spinner has stopped ");
}
/////////
})
/////////
})
/////////
})
</script>

</body>
</html>