2 working independent fields ?
See original GitHub issueDo not tell me how to do it? I tried to do it like this, but in the end, one field controls both values
var $range = $(".js-range-slider"),
$input = $(".js-input"),
instance,
min = 0,
max = 4000;
$range.ionRangeSlider({
type: "single",
min: min,
max: max,
from: 0,
onStart: function (data) {
$input.prop("value", data.from);
},
onChange: function (data) {
$input.prop("value", data.from);
}
});
instance = $range.data("ionRangeSlider");
$input.on("change keyup", function () {
var val = $(this).prop("value");
// validate
if (val < min) {
val = min;
} else if (val > max) {
val = max;
}
instance.update({
from: val
});
});
var $range = $(".js-range-slider-to"),
$inputTo = $(".js-input-to"),
instance,
min = 0,
max = 2000;
$range.ionRangeSlider({
type: "single",
min: min,
max: max,
from: 0,
onStart: function (data) {
$inputTo.prop("value", data.from);
},
onChange: function (data) {
$inputTo.prop("value", data.from);
}
});
instance = $range.data("ionRangeSlider");
$inputTo.on("change keyup", function () {
var val = $(this).prop("value");
// validate
if (val < min) {
val = min;
} else if (val > max) {
val = max;
}
instance.update({
from: val
});
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Solved For static (time independent) fields, which of the - Chegg
For static (time independent) fields, which of the following current densities are possible? a) J = 2x 3 yax + 4x2z2ay - 6x2yzaz....
Read more >Conservative Fields & Path Independence (Vector Fields)
A few examples are worked to demonstrate these new line integral shortcuts! 0:00 Gradient/Conservative/Path Independent 2 :10 Fundamental ...
Read more >As an Independent Contractor, Can I Work for More Than One ...
Independent contractors (IC) are those workers who are self-employed. ICs are taxed differently by the IRS and are generally classified differently than.
Read more >For static (time-independent) fields, which of the following
An idealized velocity field is given by the formula V = 4txi - 2t²yj + 4xzk Is this flow field steady or unsteady?...
Read more >Working at Independent Field Connections: 6 Reviews - Indeed
Reviews from Independent Field Connections employees about Independent Field Connections culture, salaries, benefits, work-life balance, management, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
how it’s complicated) thanks, work)
@st1mset, no. This is for both, you again rewriting vars. You should have different max and min: min_1, max_1, min_2, max_2