I'm wanting to do something like this:

JS
$('.sliderating').slider({value: this.text(), min: -5, max: 5. step:
1});

HTML
<div class='sliderating'>4</div>
<div class='sliderating'>2</div>
<div class='sliderating'>5</div>

But that (obviously) isn't working, so any guidance is appreciated.

On Feb 3, 12:01 am, jsuggs <[email protected]> wrote:
> I'm wanting to put a default value for the slider in the (x)html for
> semantic reasons.  I could be overlooking something, but currently I'm
> only seeing the default value being applied in the (jQuery)
> constructor.
>
> My reason is that I'm using the slider for a voting/ranking interface
> and there can be multiple voting elements on a single page, so each
> one (on the page) could have a different starting value (if people
> have already voted), and I would rather have the starting value
> embedded into the (x)html instead of having to write out a dynamic
> value in js (hope that makes sense).
>
> I'm still working on my rating system.  Currently you can only access
> the rating system when you are logged in, so I've created a temporary
> login user/pass => jquery/jquery
>
> Off topic, but I'm looking at incorporating more of my site into
> jQuery UI, so any "pointers" are welcome.
--~--~---------~--~----~------------~-------~--~----~
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