Not sure about the answer to #1 or why the posted code for #2 doesn't
work, but i can tell you that for #2 you can simply just set the
textbox's value using normal jQuery (or JavaScript)

ie/
$("#selected_date").val("default date here");


On Jan 16, 1:10 pm, Jason Meckley <jasonmeck...@gmail.com> wrote:
> today I'm learnig jquery. I downloaded jquery-1.3.min.js and jquery-ui-
> personalized-1.6rc5.min.js with everything.
> I'm trying to get the calendar working. so far I have most elements
> that I need:
> start on saturday
> formatted date
> select year/month
> display with image and textbox focus
>
> there are 2 things remaining.
> 1. disable specific days (if date != saturday, disable)
> 2. set the default date.
>
> the getDate and setDate do not seem to work at all. here is my code:
> <html>
> <head>
> <script src="jquery-1.3.min.js"></script>
> <script src="jquery-ui-personalized-1.6rc5.min.js"></script>
> <script>
>     $(document).ready(function() {
>                 var birthday = new Date(1980, 11, 25);
>                 $('#selected_date').datepicker({
>                         setDate:birthday,
>                         dateFormat:"mm-dd-y",
>                         changeMonth:true,
>                         changeYear:true,
>                         firstDay:6,
>                         showOn: 'both'}
>                 );
>         });
> </script>
> </head>
> <body><input type="textbox" id="selected_date"/></body>
> </html>
> am I missing something, or is this functionality broken? I'm assuming
> when I pass in the setDate property the calendar will show that date
> selected and the value will be placed in the textbox.

Reply via email to