Jquery UI Dynamic Multiple Slider updated Slider value based on Input text
So far I can set slider value based on input text value need to confirm about how to change slider set value .
I used custom slider handler
- <div style="margin:0px" id ="bonusScore" Style="width:100px;">
- <div id="custom-handle" class="ui-slider-handle"></div>
- <input type="text" name="assesmentScore" class="input-mini" /input>
Script :
- $(function(){
- var handle = $("#custom-handle");
- var bonusSlider=$("#bonusScore", $(this)).slider({
- range: "min",
- value:50,
- step: 10,
- min:10,
- max:100,
- slide: function( event, ui ) {
- $(this).find(".ui-slider-handle").html(ui.value);
- },
- $(this).parents("tr").find('input[name="assesmentScore"]').on("keyup", function (event) {
- var textValue = $(this).parents("tr").find('input[name="assesmentScore"]').val();
- bonusSlider.slider("value",textValue);
- $(this).find('.ui-slider-handle').html(textValue); // here I can't set slider change value just slider moving can't see handle text value.
- });
- });
- });