AJAX
Basics
Data
DOM
Effects
Events
Forms
jQuery UI
Plug Ins
Traversing
In order to use jQuery UI tools, you will need to include the jQuery js and css files.
// example 1
$(function () { $("#jq-slider1").slider(); });
// example 2
$(function ()
{
var handle = $("#custom-handle");
$("#slider2").slider({
create: function ()
{
handle.text($(this).slider("value"));
},
slide: function (event, ui)
{
handle.text(ui.value);
}
});
});
// example 3
$(function ()
{
$("#slider3").slider({
range: "max",
min: 0,
max: 1000,
value: 100,
step: 50,
slide: function (event, ui) {
$("#txtAmount").val(ui.value);
}
});
$("#txtAmount").val($("#slider3").slider("value"));
});