How to create simple calender in javascript,

Recommended Answers

All 3 Replies

Hi

Do you literally want to create your own or could you use one of the multitude of available calendars that already exist. For example:

HTH

The easiest way would be jQuery-ui's Datepicker.

<script>
$(function() {
    $( "#datepicker" ).datepicker();
});
</script>

<input type="text" id="datepicker">

Even easier would be the HTML5 date input, but it's not yet widely supported and browser dependant. I believe it works in Chrome, but you'd exclude a lot of other browser types.

OK Thank you for all. But I don`t know about jquery

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.