I decided to use the jQuery UI Datepicker script to select dates. The following is part of my code and the way I integrated it into my PHP page:
<link type="text/css" href="css/south-street/jquery-ui-1.8.6.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script> <script type="text/javascript"> $(function(){ </script>
and
// date picker (embeds JQuery script) echo '<label for="datepicker">Date: </label>'; echo '<input type="text" name="datepicker" id="datepicker" />'; echo '<div id="datepicker"></div>';
To a large extent according to the jQuery UI instructions.
Now my question is: how can I turn off manual inputs in a text input field? I want a jQuery Datepicker script to be able to populate a text box. As far as I can see, the script currently does not allow the user to enter any non-numeric characters in the text box, but any combination of numbers is allowed (therefore gibberish like "95460829468" is allowed).
php jquery-ui datepicker
BeeDog Nov 12 '10 at 12:21 2010-11-12 12:21
source share