jQuery slider ui -- dynamically set starting value from HTML element
- by publicRavi
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?