Another option is to have the slider plugin auto-create the handle(s) for
you. This is what's happening in the example you point to. If you want more
than one handle, just specify the values option:

$("#slider").slider({ values: [0, 15] });

and it will automatically create up to two handles for you.

- Richard

On Mon, Apr 13, 2009 at 12:35 AM, Richard D. Worth <[email protected]>wrote:

> The handle option was removed in 1.7. See
>
> http://jqueryui.com/docs/Upgrade_Guide#Slider
>
> Instead, add the class 'ui-slider-handle' to the div. You can do this by
> modifying the markup, or by calling
>
> $("#slider .handle").addClass("ui-slider-handle");
> $("#slider").slider();
>
> - Richard
>
>
> On Sat, Apr 11, 2009 at 12:32 AM, salman <[email protected]> wrote:
>
>>
>> Hi guys
>>
>> need your help
>>
>> looking at the demo here http://jqueryui.com/demos/slider/
>>
>> i cant understand how i can i tell the slider to chose specific div as
>> handle.
>>
>> on the demo page in source code part, there is only one div
>> ================================================
>> <script type="text/javascript">
>>        $(function() {
>>                $("#slider").slider();
>>        });
>>        </script>
>>
>> <div id="slider"></div>
>> ================================================
>> where is the second div (handle div).
>>
>> and i dont want to use themes bundled with ui.
>>
>> before jq1.3.2 this code use to work
>>
>> ================================================
>> <script type="text/javascript">
>>        $(function() {
>>                $("#slider").slider({
>>                     handle: '.handle'
>>                });
>>        });
>>        </script>
>>
>> <div id="slider">
>> <div class="handle"></div>
>> </div>
>> ================================================
>>
>> so can some one post a solution please
>>
>> regards
>> salman
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to