1
我無法得到這個在jquerymobile工作,我在weightvalue變量中獲得空:獲取Jquerymobile中滑塊的值?
JS
$("#submitWeight").on('click', function(e) {
e.stopImmediatePropagation();
e.preventDefault();
submitWeight(e);
});
function submitWeight(e){
var weightMonth = $("#selectMonth option:selected").text();
var weightValue = $("#sliderWeight").slider("option", "value");
alert("Done");
}
HTML
<input type="range" name="slider" id="sliderWeight" value="60" min="0" max="100" data-theme="c" >
我打我之前試過,但我再次嘗試這一點,它的工作。非常感謝 – kolexinfos