[英]Get the value of toggle switch jQuery Mobile
When the submit is pressed I want to alert the value of the switch, however it is not working as planned 当按下提交时,我想提醒开关的值,但是它没有按计划工作
jsFiddle jsFiddle
http://jsfiddle.net/Q3p9X/ http://jsfiddle.net/Q3p9X/
JS JS
$('#newevent1info').submit(function (event) {
var val = $('#newevent1').slider().value;
alert(val);
}
ALSO for some reason its creating a slider in my header: 还出于某种原因,它在我的标题中创建了一个滑块:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.