0
我正在使用Scriptaculous創建一個價格範圍滑塊與兩個句柄說最小值和最大值。如何將最小值和最大值存儲在單獨的隱藏字段中。Scriptaculous滑塊價格範圍滑塊與兩個手柄
當前腳本如下,
<div id="price-range" class="filter-track">
<span id="price-min" class="filter-handle" title="Scroll to set your minimum value">>></span>
<span id="price-max" class="filter-handle" title="Scroll to set your maximum value"><<</span>
</div>
<input type="hidden" name="price" id="beds" value="0,100"/>
var loadPriceSlider = function() {
var handles = [$('price-min'), $('price-max')];
// horizontal slider control with preset values
new Control.Slider(handles, 'price-range', {
range:$R(0, 5000, false),
sliderValue: [0, 3000],
values: [0, 100, 200, 300],
restricted: true,
onChange: function(v){
$('price').value = v;
}
});
};
它將存儲在逗號字段price
分離(最小,最大)值。但我想將其存儲在單獨的字段中。這個怎麼做?請幫忙嗎?