How To Get Value From Input With Dynamically Changed Value By Jquery Ui Slider?
I've input text with a dynamically changed value by jquery UI slider. How to get value from $('#scope_input') by jquery? .change event working only from manual keypress on keyboar
Solution 1:
You need to trigger the change event manually:
$("#scope_input").val(ui.value).change();
Solution 2:
WHen you update the field within the slide event, trigger the change on the input
$("#scope_slider").slider({
range: "min",
min: 1,
max: 100,
value: 10,
slide: function(event, ui) {
$("#scope_input").val(ui.value).change();
}
});
Post a Comment for "How To Get Value From Input With Dynamically Changed Value By Jquery Ui Slider?"