Currently, I have a text box containing certain values and a submit button alongside a slider. When I click the submit button, the slider changes. However, I would like to achieve the functionality where instead of clicking the submit button, changing the value in the text box directly impacts the movement of the slider. You can see my progress so far on this JSFiddle link.
Below is the jQuery code snippet:
var slider = $(".slider").slider({
value: 50,
animate: true
});
$('#animate').click(function(){
slider.slider('value', $('#val').val());
});