Hello, I have a popup datepicker: $("input.DateTimeTextBox").datepicker(); and it works OK. But I would prefer to have it inline under the textbox. I cannot find an option to turn datepicker to inline mode. Sure, I can wrap the inputbox into div, but that lead me to this code: $("input.DateTimeTextBox").each(function(index, item) { var initDate = $(this).val().split(' ')[0].split('.'); $(this).parent().datepicker({ defaultDate: new Date(initDate[2], initDate[1] - 1, initDate[0]), onSelect: function(dateText, obj) { $('.DateTimeTextBox', this).val(dateText); } }); }); which works, but is ugly. It looks that defaultDate even don't understand dateFormat (not shown in the code but it is set by localization). Is there a better way?
-- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.