Level 75
Field to datepick make sure it has an id
<td><input type="text" name="transdate" id="transdatea" value="" size="14"></td>
code to date pick, put in an image to click on
$(document).ready(function () {
$("#transdate").datepicker({
showOn: "button",
buttonImage: "/checkbook/public/overcast/images/calendar19.gif", // put in an image to click on
buttonImageOnly: true,
dateFormat: "yy-mm-dd",
changeMonth: true,
changeYear: true
});
});
There are examples of this on the jquery ui site, with example source code also.
1 like