concept spinner in category jQuery

appears as: spinner, spinner, The spinner, spinners
jQuery UI in Action

This is an excerpt from Manning's book jQuery UI in Action.

The spinner widget solves these problems by providing an easy way for users to input numbers in any format. You’ll use the spinner to build the last field in your form: an input to collect the number of days the user has been sick.

Figure 4.9. A comparison of the spinner (top) and slider (bottom) widgets. Although both widgets accept min, max, and step options, the spinner enforces them within a textbox, and the slider enforces them using a visual range.

The range polyfill is a bit more complex, because—unlike datepicker and spinner—a slider must be created on a <div> rather than an <input>. You need to create an extra element for each <input> you need to polyfill. The approach you’ll take is shown here: