Relavent bits of code are as follows...
<form name="form1" method="get" action="insertRaceRecord.php">
<p class="indent">
<label for ="RaceDate">Date: </label>
<input class="RaceDate" id="RaceDate" value="01/01/2013" />
<script>//http://www.eyecon.ro/datepicker/#about
$('input').DatePicker({
format:'m/d/Y',
date: $('input').val(),
current: $('input').val(),
starts: 1,
position: 'r',
onBeforeShow: function(){
$('input').DatePickerSetDate($('input').val(), true);
},
onchange: function(formated, dates){
$('input').val(formated);
$('input').DatePickerGetDate(formated);
$('input').DatePickerHide();
}
});
</script>
</p>
Thanks in advance

New Topic/Question
Reply



MultiQuote






|