2
Expensive, I searched and tested in many ways how to format a date field in jQuery but it’s not working.
I’ve imported the jQuery Masked Input in 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 function jQuery so:
jQuery(function($){
$("#dataInicial").mask("99/99/9999");
});
Can someone tell me if I’m eating ball somewhere?
Try to simplify this way:
jQuery("#dataInicial").mask("99/99/9999");
– Oeslei
It worked dude!!!!!!! Thank you very much Oeslei.......
– Brunão
Have you checked if the script is actually being imported ?
– Daniel Gregatto