On Thu, 2009-09-10 at 13:26 -0700, TonyV wrote:
> I'm working on a plugin for WordPress that uses the
> jquery.ui.datepicker library. I'm using jquery.ui.tabs & Thickbox on
> the same page. Everything's been working, but I found a problem with
> the date picker.
>
> Essentially, the page has 3 tabs. On one tab, the user can click on a
> link & a Thickbox dialog is displayed. This dialog has 3 fields in it
> that are mapped to the datepicker via their class name.
>
> What's happening is the datepicker is opening up underneath the
> Thickbox dialog box. I can see the last line or so of it peeking out
> from under the dialog box.
>
> How do I bring the datepicker on top of the thickbox dialog box?
$('#selector').datepicker({
beforeShow: function (i, e) {
// the following sets relative to a neighboring element
//var z = jQuery(i).closest(".ui-dialog").css("z-index") + 4;
//e.dpDiv.css('z-index', z);
// sets absolute
e.dpDiv.css('z-index', '20');
}
});
--
Matt Zagrabelny - [email protected] - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 1024D/84E22DA2 2005-11-07
Fingerprint: 78F9 18B3 EF58 56F5 FC85 C5CA 53E7 887F 84E2 2DA2
He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---