I have a JQuery UI Slider and by moving it forward it's display formatted currency with RS as rupees symbol. As shown in the picture
The JQuery Code is given
$('#personalLoanSlider').slider({
range: "min",
value: 1,
step: 25000,
min: 200000,
max: 4000000,
slide: function( event, ui ) {
$('#personalloanAMT').val(formatINR("Rs. " + ui.value ));
$('#wordAmount').html(convertNumberToWords( ui.value) + "Rupees Only");
}
});
I want a functionality that if the user input their own custom values directly in to textbox then the slider will move forward or backward.
I have tried with below code but its not working
$("#personalloanAMT").change(function () {
var value = this.value.substring(1);
console.log(value);
$('#wordAmount').html(convertNumberToWords( ui.value) + "Rupees Only");
});