Solved

double datepicker calendar

Posted on 2011-03-16
8
745 Views
Last Modified: 2012-05-11
i need a jquery double datepicker calendar
ya know - one that shows 2 months at a time

it would be nicke if i could specify how many calendars to show at a time like datePickerController.create(2) for ex
0
Comment
Question by:dgrafx
  • 4
  • 4
8 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35145008
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35145010
0
 
LVL 25

Author Comment

by:dgrafx
ID: 35146703
gurvinder
you were up early!
I'm at work now so cant access the first link you posted - something to do with security ???

can you provide some working sample code please.
I looked at the link and it's not immediately apparent how to use with form input field.
would want calendars to be hidden until form field focused or a calendar icon clicked also of course.

thanks
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 40

Expert Comment

by:gurvinder372
ID: 35146901
0
 
LVL 25

Author Comment

by:dgrafx
ID: 35147008
ok - so i saw this link ...
i'm really new to jquery and it is not apparent to me how to call this with a form field as i stated above.

thanks
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 35147031
$( "#dateInputField" ).datepicker({ numberOfMonths: [2, 3] });

where dateInputField is the id of the input field

<p>Date: <input id="dateInputField" type="text"></p>
0
 
LVL 25

Author Comment

by:dgrafx
ID: 35147591
ok - just get js error - object doesn't support that property or method
could you post a complete example please for just one input box

thanks
0
 
LVL 25

Author Comment

by:dgrafx
ID: 35148108
ok - it works now!
don't know what was up - thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question