$('#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>');
}
}
});
输入被隐藏,滑块显示,但在提交时它的值总是 0