Demo of Spinner in JQuery

Use arrow up, down keys to increase or decrease values . Page Up & Page Down keys to Jump increment or decrement by 10

HTML

<input id="spinner" class='selector' size=3>
CDN What is CDN ?
<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">

JQuery

<script>
$(document).ready(function() {
$( "#spinner" ).spinner();
})
</script>
The full code is here ( save as .html file )
<html>
<head>
<title></title>
</head>

<input id="spinner" class='selector' size=3>

<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();
});
</script>

</body>
</html>