Simple Javascript Datepicker with Example

Today i am going to tell you how to use simple javascript Datepicker with the help of jquery plugin. This is very simple to include the jquery plugin and the date picker javascript file and just call the function through the id. Then the datepicker will work perfectly.

You can design the calendar according to your choice with the help of css. when click the input field the calender will show, Here it shows the date and month and year selecter. There is several options is there in the jquery datepicker plugin.

This will really helpfull to select the date field like date of birth and any other date fields. This is very user friendly to select the date in particular date formate.This example have the demo page of datepicker.

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>jQuery Datepicker</title>
<link href="css/jquery.datepick.css" rel="stylesheet">
<script src=""></script>
<script src="js/jquery.plugin.min.js"></script>
<script src="js/jquery.datepick.js"></script>
$(function() {
$('#inlineDatepicker').datepick({onSelect: showDate});

function showDate(date) {
alert('The date chosen is ' + date);
<center><p><label>Select Datepicker: </label> <input type="text" id="popupDatepicker"></p></center>

Post a Comment