<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.2/jquery.mobile1.4.2.min.css">
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<script>
$( "#submit" ).click(function() {
$( "#my_form" ).submit();
});
</script>
<body>
<form id="my_form" action="my_place.jsp" method="POST" style="align:center">
<div data-role="page" id="page1">
<div data-role="header">
<h1>Parameters:</h1>
</div>
<div data-role="rangeslider">
<label for="range-1a">Support:</label> <input name="range-1a"
id="range-1a" min="1" max="21" value="1" type="range"> <label
for="range-1b">Support:</label> <input name="range-1b" id="range-1b"
min="1" max="21" value="5" type="range">
</div>
<div data-role="rangeslider">
<label for="range-2a">Confidence:</label> <input name="range-2a"
id="range-2a" min="50" max="100" value="90" type="range"> <label
for="range-2b">Confidence:</label> <input name="range-2b"
id="range-2b" min="50" max="100" value="100" type="range">
</div>
<div data-role="fieldcontain">
<label for="select-choice-1" class="select">Building:</label>
<select name="select-choice-1" id="select-choice-1">
<option value="Library">Library</option>
<option value="Hospital">Hospital</option>
</select>
</div>
<input type="submit" name="Submit" value="Submit" id="submit">
</div>
</form>
</body>
我正在使用 JQuery 移动滑块,一旦用户单击提交,我想将表单提交到 my_place.jsp。我的代码有什么问题?