Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery slider error Uncaught TypeError: Cannot call method 'addClass' of undefined

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] );
        }           
    });
like image 810
rjx44 Avatar asked Aug 31 '12 07:08

rjx44


1 Answers


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

like image 58
BIEG Avatar answered Oct 05 '22 06:10

BIEG