jquery - Need help got stuck in javascript date picker -
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jquery ui datepicker - default functionality</title> <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"> <script> var d = "02-12-2016"; $(function () { $("#datepicker").datepicker({ mindate: d, dateformat: 'mm-dd-yy'; }); }); </script> </head> <body> <p>date: <input type="text" id="datepicker"> <input type="text" id="final"></p> </body> </html>
hello friends using var d="02-12-2016" , want show next date in text field in front of date picker , text box have date 02-15-2016
i working on , not getting way how done.
according api doc : jquery-ui-1.11 work either.
mindate: d, dateformat: 'mm-dd-yy', defaultdate: d, altfield: '#final'
Comments
Post a Comment