Reputation: 12608
I have a calling the ion.rangeslider jquery snippet like this...
$("#rangeSlider").ionRangeSlider({
grid: true,
from: +moment(today).format("X"),
step: 86400,
});
I am trying to replace 'from:' with the value of an input box like this...
$("#rangeSlider").ionRangeSlider({
grid: true,
from: jQuery( '.price_from').val(),
step: 86400,
});
But it's not working, I am pretty sure it is just a syntax issue
can anyone show me where am I going wrong?
Upvotes: 0
Views: 38
Reputation: 31292
I think your selector is wrong.
It should be either
jQuery( '#price_from').val() // if price_from is an id
or
jQuery( '.price_from').val() // if price_from is a class
Upvotes: 2