I don't know if I understand completely. But, here is a solution that
could work if you whant to set 2 or more input's with a datepicker
using only the id's.

html:
<input type="text" id="datepicker1">
<input type="text" id="datepicker2">
<input type="text" id="datepicker3">

javascript (option 1, one datepicker for each input):
$(function() {
    $("#datepicker1").datepicker();
    $("#datepicker2").datepicker();
    $("#datepicker3").datepicker();
});

javascript (option 2, you can use the jquery selector to capture all
the desired inputs and will give you an array of objects and then the
function datepicker() will apply to each element on the array, similar
to the previous post):
$(function() {
    $("#datepicker1,#datepicker2,#datepicker3").datepicker();
});


On Jul 13, 9:42 pm, JohnIke <[email protected]> wrote:
> I have been trying to work out this same problem.  I am not a
> JavaScript wiz, but have been trying a number of ways to get things
> going.  The problem I see with your above solution is that you can't
> set different options on each date field if you don't give them an
> id.  Not really sure what the best solution is.   We need to set up
> different default values and options on each different date field on
> the page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to