Git Product home page Git Product logo

Comments (5)

Soslan24 avatar Soslan24 commented on June 23, 2024

same problem. I don't know how to solve it

from ion.rangeslider.

yonchando avatar yonchando commented on June 23, 2024

The same here.

from ion.rangeslider.

StenLeinasaar avatar StenLeinasaar commented on June 23, 2024

Assuming you included all the dependencies. Here is my approach in a separate js file that I included in my HTML file. It works for me.

"use strict";
var range_slider_custom = {
	init: function () {
			$("#my-slider").ionRangeSlider({
				type: "double",
				skin: "round",
				grid: false,
				min: 0,
				max: 5000,
				keyboard: true,
				hide_min_max: true,
				onChange: function (data) {
					var min = document.getElementById("min_price");
					var max = document.getElementById("max_price");
					min.setAttribute("placeholder", data.from);
					max.setAttribute("placeholder", data.to);
				},
			}),		
	},
};
(function ($) {
	"use strict";
	range_slider_custom.init();
})(jQuery);

I hope that is helpful. Make sure you include all js files in correct order and add them as type="module"

from ion.rangeslider.

andreidiaconescu avatar andreidiaconescu commented on June 23, 2024

this issue reproduces for me too: i upgraded to angular 15, and bootstrap 5, and i started getting this error:
...ERROR TypeError: this.$(...).ionRangeSlider is not a function

from ion.rangeslider.

Yaronberg avatar Yaronberg commented on June 23, 2024

I encountered a similar problem when I connected jQuery via CDN and imported it into a Vue project at the same time. I recommend checking all jQuery connections in the project.

from ion.rangeslider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.