Hi,
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 ?

It looks different . What I asked?

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

commented: heh heh. blood from a stone. everytime +15
<html>
<head>
<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"/>

</head>
<body>
<input id="datePick" type="text"/>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(}{
   $('#datePick').multiDatesPicker();
});
</script>

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

Member Avatar for diafol

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:

$(document).ready(function(}{

To:

$(document).ready(function(){
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 for diafol

You want to count the number of dates chosen?

Member Avatar for diafol

Before or after you submit.

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.