JQuery DatePicker date format query -
JQuery DatePicker date format query -
i have managed jquery datepicker widget integrated web site building client.
now need finish particular task off alter date format mm-dd-yy dd-mm-yy
http://api.jqueryui.com/datepicker/#option-dateformat
based on above info , code using, shown below, how accomplish this??
$( document ).ready(function() { $(function() { $( "#datepicker" ).datepicker(); }); }); <input class="w-input input hasdatepicker" id="datepicker" type="text" placeholder="expected moving date" name="datepicker" data-name="datepicker" required="required">
thank you
you using jquery ready 2 times. code should this
$( document ).ready(function() { $( "#datepicker" ).datepicker({ dateformat: "dd-mm-yy" }); });
full illustration changed date format "dd-mm-yy" http://jsfiddle.net/63wrvtxn/1/
if want add together datepicker multiple input field can add together class datepicker istead of id http://jsfiddle.net/63wrvtxn/3/
$(document).ready(function () { $(".datepicker").datepicker({ dateformat: "dd-mm-yy" }); });
jquery
Comments
Post a Comment