Jquery 日期选择器不显示弹出窗口
我已经在我的项目中使用了。但是它没有显示弹出窗口。这是代码。请帮助我Jquery 日期选择器不显示弹出窗口,jquery,jquery-ui,datepicker,Jquery,Jquery Ui,Datepicker,我已经在我的项目中使用了。但是它没有显示弹出窗口。这是代码。请帮助我 <tr> <td>Date of Submit<span class="red">*</span></td> <td height="48">:</td> <td height="48"><input type="text" id="dateof_sub" name="dateof_sub" class
<tr>
<td>Date of Submit<span class="red">*</span></td>
<td height="48">:</td>
<td height="48"><input type="text" id="dateof_sub" name="dateof_sub" class="normal">
<span class="red" id="date_submit_error"></span></td>
</tr>
<link rel="stylesheet" href="themes/base/jquery.ui.all.css">
<script src="ui/jquery.ui.core.js"></script>
<script src="ui/jquery.ui.widget.js"></script>
<script src="ui/jquery.ui.datepicker.js"></script>
<link rel="stylesheet" href="demos.css">
<script>
$(function() {
$( "#dateof_sub" ).datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
您需要包含jqueryreferece,才能让jQueryUI工作-请参阅 这两个参考资料足够了-
你还没有包括jQuery文件,你有javascript错误吗?谢谢你重播Shaunak D先生。但它仍然不工作。它在其他页面工作。
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>