oBo oBo - 1 year ago 227
jQuery Question

Jquery UI Slider change value of slider when changed in input field

im trying to get the slider to jump to the correct position when I change the value in the input field.
Iam using the Jquery UI slider jqueryui.com/slider/.

Please help.

Heres a js fiddle http://jsfiddle.net/p4gqJ/

Answer Source

You attach to the change event of your input like so:

$( "#storlek_testet" ).change(function() {
    $( "#storlekslider" ).slider( "value", $(this).val() );
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download