Reputation: 389
I have problem with my jQuery slider. After I update the value of the slider it does not work anymore and shows an error that says
"Uncaught TypeError: Cannot call method 'addClass' of undefined".
I don't have any idea to figure this out. Thanks!
Here is the sample code:
$("#slider-range").slider({
range:true,
min: minPrice,
max: maxPrice,
values:[ minPrice , maxPrice ],
slide: function( event,ui ){},
change: function( event,ui ){
$( "#amount" ).val( "$" + ui.values[0] + " - $" + ui.values[1] );
}
});
Upvotes: 9
Views: 7729
Reputation: 116
type error: it seems you have an invalid value set to the value of your slider. therefore it cant load - liek putting an int in a string and use it as a boolean - wont never work ...
:)-
cheers
BIEG
Upvotes: 10