I'm using the onSelect method of the datepicker to set the values of 3
selects. I'm using an input[button] element as the datepicker. I would
like to prevent the datepicker from changing the value of the input
[button] element. I've tried a few things without success. I've read
through the docs. I hope I haven't missed something obvious. Thanks in
advanced.

$("#datepicker").datepicker({
   onSelect: function(datestr, target) {
       var date = datestr.split("/");

        $("#month").val(date[0]);
        $("#day").val(date[1]);
        $("#year").val(date[2]);
   }
});

<select id="day">...</select><select id="month">...</select><select
id="year">...</select>
<input type="button" id="datepicker" value="Calendar" />

--~--~---------~--~----~------------~-------~--~----~
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