0
$('#spicy').hide().after('<div class="slider" id="spicy_s"></div><div class="sliderT">-</div>');
$('#spicy_s'). slider({
value:$('#spicy').val(),
min: 0,
max: 100,
step: 5,
slide: function(event, ui) {
$('#spicy').val(ui.value);
if(ui.value > 50){
$('#spicy_s').next('.sliderT').css('color','#00a500').html(ui.value+'<span style="font-size:12px">/100</span>');
}else{
$('#spicy_s').next('.sliderT').css('color','red').html(ui.value+'<span style="font-size:12px">/100</span>');
}
}
});
輸入是隱藏的,滑塊被示出,但是在提交它的值是永諾0jQuery UI的滑塊.VAL()百達0
更多信息會像什麼你正在嘗試做一些樣本HTML – DG3 2012-03-03 04:08:52
什麼元素是「身份證有幫助'辣是指?它是隱藏的輸入字段? – DG3 2012-03-03 04:21:26