From the course: Learning jQuery UI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Spinner control

The Spinner control - jQuery Tutorial

From the course: Learning jQuery UI

Start my 1-month free trial

The Spinner control

- Let's begin by looking at a simple example and learning how to use jQuery UI's spinner control. Open the ExampleSnippets in your editor and also open the Spinner_start file. Now, before we can start using jQuery UI, we have to make sure a few things are in place. First, we need to include the link to the jQuery UI's style sheet. This is the default style sheet that comes with the jQuery UI download. Now, we can customize this and we'll see how to do that later in the course. But for now, let's make sure that we're including the style sheet in the document that we're going to use and this is the default one. Next, we need to include a link to the jQuery library itself and that's the script tag right here. jQuery UI is built on top of the jQuery library, so we need to include jQuery before we include the jQuery UI library. The jQuery UI download includes the version of jQuery that it works with. So, we'll just link to that one here and include the jQuery UI library after that. All…

Contents