Hi Jim,

the line you are trying to execute does nothing because it tries to
initalize the datepicker again,
but sees that it's already done, so it fails.

What you want to do is change the option for prevText, and this can be done
like that instead,
with an object to change multiple options at once:

$("#calendar").datepicker("option", { prevText: "previous" });

or otherwise the other syntax

$("#calendar").datepicker("option", "prevText", "previous");

Hope this helps!
Paul

On Mon, Oct 13, 2008 at 10:17 AM, Jimbo M <[EMAIL PROTECTED]> wrote:

>
> I'm new to both jQuery and jQuery UI.  The jQuery part is coming
> easily enough, but I'm having a problem wrapping my head around the UI
> part.
>
> Specifically I'm trying to utilize datepicker.  I'm using code as
> such:
>
> $("#calendar").datepicker({ prevText: "&lt;&lt;", nextText:
> "&gt;&gt;"});
>
> I'm confused specifically because I'm later trying to modify the
> datepicker in code, but using the following statement does nothing:
>
> $("#calendar").datepicker({ prevText: "previous" });
>
> I've looked through the demos, but they all seem to be one-liners.
>
> --- Jim ---
>
> >
>


-- 
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus

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