What are you using to generate the slider? if your using jQueryUI try somthing like: $('.selector').slider({ change: function(event, ui) { $('#my_input').val(ui.value); } });
On May 14, 2:59 am, digitalaspect <digitalasp...@gmail.com> wrote: > I need to pass the value of a slider to a form. I am trying to use > #<input type="hidden" id="my_input" /> # > > I tried altField as per the datepicker, but that doesn't work. Have > tried to get a function working, but to no avail. > > # $("#target_div_id").slider({ min: 100, max: 500, > # function() { > # $('#my_input').value( $("#target_div_id").slider.value() ); > # } }); > # > Can anyone help me get off the ground on this one?