Actually in my Spring application i\'m using spring based form
tag in my jsp code.
And add the functionality for this
,pr
looks like you are not loading the jquery.js.....u need jquery file to run the ui component..
load jquery.js befor jquery-ui.min.js
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="resources/jquery/jquery-ui.min.js"></script>
It's mostly because reference issues. Please check following, preferably using Firebug or developer tools in browser
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
Try with the following code
<form:input path="fromDate" cssClass="date-picker" />
Your code is acceptable,
<form:input type="text" path="fromDate" class="date-picker" />
because all of the Spring MVC form tag support dynamic attributes, like HTML5 placeholder
. Unless you are using older version of Spring.