You can call datedicker with 'dialog' as the first parameter and
specify the x and y coordinates in an array for the fifth parameter.

http://docs.jquery.com/UI/Datepicker#method-dialog

Here's real code I use for a button labeled "Change date" with an id
of 'datelink'

  // Click to Change date
  $('#datelink').click(function (event){
    $("#datepicker").datepicker(
      'dialog',
      fetchDate( lcLoc),  // my function returning the initial date
      dpOnSelect,         // on select function
      dpOptions,          // datepicker options
      [event.pageX-100,event.pageY]  // position
      );
     });


**--**  Steve


On Apr 9, 5:03 am, mvc face <[email protected]> wrote:
> My website currently has some DatePicker controls, set up to pop up
> when the user clicks a datefield in the application. At the moment,
> the datepicker appears beneath the text field that shows the selected
> date, however what I would like to happen is that the datepicker
> appears *on top* of the text field, hiding it.
>
> I can find anything in the documentation about repositioning the
> datepicker, and nothing I've found via Googling seems to do what I
> want (the fact there seems to be 100's of datepicker controls doesn't
> help!). Is there a standard way to re-positiong the JQueryUI
> DatePicker?
>
> Apologies if I've missed something obvious, any help greatly
> appreciated!
--~--~---------~--~----~------------~-------~--~----~
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