我正在尝试通过表单传递一个 jQuery 变量,但我不断收到错误消息。如何正确传递值变量。当我将它传递到下一页时,当我更改滑块时,它会吐出初始化变量并且不会更改。我怎样才能改变这个?
<input id="column" type="hidden" name="column" value="";>
<script>
$(function() {
$( "#slider-range" ).slider({
range: true,
min: 0,
max: 500,
values: [ 75, 300 ],
slide: function( event, ui ) {
$( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
$( "#values" ).val(ui.values[ 0 ]);
}
});
$( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
" - $" + $( "#slider-range" ).slider( "values", 1 ) );
$( "#column" ).val($( "#slider-range" ).slider( "values", 0 ));
});
</script>