实际上在我的Spring应用程序中,我在我的jsp代码中使用基于spring的form标记。
form
并为此
这是我的Jsp代码..
From : $(function() { $('.date-picker').datepicker( { changeMonth: true, changeYear: true, showButtonPanel: true, dateFormat: 'MM yy', onClose: function(dateText, inst) { var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val(); var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val(); $(this).datepicker('setDate', new Date(year, month, 1)); } }); });
但是日期选择器不工作(不可见)……
这个基于弹簧的表格标签有什么问题吗? 要么
我的代码有什么问题吗?
这主要是因为参考问题。 请检查以下内容,最好使用浏览器中的Firebug或开发人员工具
看起来你没有加载jquery.js …..你需要jquery文件来运行ui组件..
在jquery-ui.min.js中加载jquery.js
尝试使用以下代码
你的代码是可以接受的
因为所有的Spring MVC表单标记都支持动态属性,比如HTML5 placeholder 。 除非您使用的是旧版本的Spring。
placeholder