google-code-export / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
1 stars 0 forks source link

URGENT: Different behaviours for 2 or more date pickers on the same page. #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have several date pickers on the same page, most of them need to follow the 
same behaviour except for one, which I need to have do a different behaviour. 
How do I target each date picker to execute a different set of functions?

Cheers. 

Original issue reported on code.google.com by patricka...@gmail.com on 28 Sep 2012 at 6:11

GoogleCodeExporter commented 9 years ago
Just select different dom elements with jQuery to apply the date picker to. 
This example shows different behaviours added to two date pickers on the same 
page:

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.ht
ml

Original comment by kelvin.l...@gmail.com on 28 Sep 2012 at 8:01

GoogleCodeExporter commented 9 years ago
Hi,  

I'm a noob at js so I've tried to hack it to make it work for me but its not 
happening. I have 4 date pickers on the page and I need 3 of them to be able to 
pick from the past, but only one of them to be able to pick from tomorrow 
forward. They're not dependent on each other at all, I just need to target one 
of them by ID and apply the different function to that one. Is that possible?

THANKS IN ADVANCE … desperately trying to meet a deadline.  

Original comment by patricka...@gmail.com on 1 Oct 2012 at 7:18

GoogleCodeExporter commented 9 years ago
At this point your question is just a basic javascript/jQuery question and not 
specifically related to the date picker. I'd suggest asking on 
http://stackoverflow.com/ or something. Otherwise you can look closely at the 
example I gave and you should be able to find the answer to your question.

Original comment by kel...@kelvinluck.com on 1 Oct 2012 at 8:22