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