nickywan123
1 month ago
607
2
Laravel

ionrangeslider is not displaying

Posted 1 month ago by nickywan123

I download the ion range slider using npm install ion-rangeslider. I imported it like below:


   <div> <input type="text" id="price-range-slider" name="price-range-slider" value="" /></div>


 $("#price-range-slider").ionRangeSlider({
    skin: "big",
    min: 0,
    max: 10000,
    from: 1000,
    to: 9000,
    type: 'double',
    prefix: "$",
    grid: true,
    grid_num: 10
});

and in my app.js

require("ion-rangeslider");

It keeps telling me Uncaught TypeError: $(...).ionRangeSlider is not a function. What did I do wrong?

Please sign in or create an account to participate in this conversation.