I searched example for multiple dates selecting at a time in a calendar, its working in online., but not in local.
Can anyone help me for multiple datepicker to select multiple dates from a single calendar ?

The browser javascript console does not return any error? Can you show your code?

commented: heh heh. blood from a stone. everytime +15

<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"/>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"/>
<script src="http://multidatespickr.sourceforge.net/jquery-ui.multidatespicker.js"/>

<input id="datePick" type="text"/>
<script type="text/javascript">

Its not working. Only showing textbox. Nothing other than that.

Member Avatar


Try changing the input to:

<div id="datePick"></div>

If the script is using .html() to insert the widget then this will fail on an input since it has .val() instead. Just a thought.

Also move the <script> block inside the body, place it just before the closing tag </body>. And the <script> cannot use self closing tag, add </script> to those loaded in the head section.

And at line 14 you're missing the closing parenthesis, so from:



commented: Good spot. +0

OK this function is working. And one more thing,
In a textbox it shows like 07/13/2015,07/14/205...
I want to take count of this days from that textbox .
How it is possible?

Member Avatar


You want to count the number of dates chosen?

Member Avatar


Before or after you submit.