jQuery slider ui -- dynamically set starting value from HTML element
Posted
by publicRavi
on Stack Overflow
See other posts from Stack Overflow
or by publicRavi
Published on 2010-05-04T00:16:06Z
Indexed on
2010/05/04
0:18 UTC
Read the original article
Hit count: 279
I am trying to read the value of my slider from a DIV element's title (which may be the issue). That is pushed into the following:
$(document).ready(function() {
$(".myslider5").slider({
value: parseInt($(this).attr("title")),
slide: function(event, ui) {
// more actions
}
});
I think I get NaN error. Any clues?
© Stack Overflow or respective owner