Date Picker:Javascript,Jquery,PHP

<!–  jquery For datepicker –>
    <link rel=”stylesheet” href=”jquery.ui.all.css” type=”text/css” />
    <link rel=”stylesheet” href=”demos.css” type=”text/css” />
    <link href=”jquery.ui.datepicker.css” rel=”stylesheet” type=”text/css”>
    <script language=”JavaScript” src=”jquery.ui.datepicker.js”></script>
    <script type=”text/javascript” src=”jquery.ui.core.js”></script>
<!–  jquery For datepicker –>
<script type=”text/javascript”>
$(function() {
$( “#p1startdate” ).datepicker({
yearRange: “-73:+0”,
changeMonth: true,
changeYear: true
});
});
</script>
<?php
$p1startdate = date(“m/d/Y”);
?>
<!– keep below line inside form tag–>
Period One Start Date: <input type=”text” name=”p1startdate” id=”p1startdate” value=”<?=$p1startdate?>”>
<!–DOWNLOAD FILES FROM THE FOLLOWING LINK:
–>

Leave a Reply