Dear, I have searched and tested in a number of ways how to format a date field in jQuery but it is not working.
I have already imported the jQuery Masked Input into the JSP:
src='<%=renderResponse.encodeURL(renderRequest.getContextPath()
+ "/js/jquery/jquery.maskedinput-1.2.2.js")%>'>
My date field:
<td align="right">Data Inicial:</td>
<td class="form_text"><input type="text" name="dataInicial" id="dataInicial">
And the jQuery function like this:
jQuery(function($){
$("#dataInicial").mask("99/99/9999");
});
Can anyone tell me if I'm eating the ball somewhere?