On page load time IonRangeSlider is Disable using disable : true once page load successfully then i will click on slider and it should ne enable and set position.
What should I do ? Using Jquery and JavaScript.
On page load time IonRangeSlider is Disable using disable : true once page load successfully then i will click on slider and it should ne enable and set position.
What should I do ? Using Jquery and JavaScript.
You need to bind a click event to your slider element, but since you cannot bind click events to elements that are disabled, you must bind this event to the parent instead. When the parent is clicked, you would then target the slider and update the disabled property, as demonstrated below.
$('input').parent().on('click', function () {
var $slider = $(this).find('input');
//$slider.update({"disable": false});
alert('The slider was clicked!');
});
.container {
display: inline-block;
}
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<div class="container">
<input type="text" disabled />
</div>