0

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 ?

3
Contributors
11
Replies
29
Views
2 Years
Discussion Span
Last Post by diafol
Featured Replies
  • 1
    cereal 1,419   2 Years Ago

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

  • 1
    cereal 1,419   2 Years Ago

    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(){ Read More

  • 1
    diafol 3,669   2 Years Ago

    Before or after you submit. Read More

1

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

Votes + Comments
heh heh. blood from a stone. everytime
0
<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.

0

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.

Edited by diafol

1

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(){

Edited by cereal

Votes + Comments
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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.