i'm loading a page using ui tabs that has a date field on it. i would like to attach ui datepicker to it, but i can't seem to get it to work. i've always loaded datepicker through the onready function. it will not work in this case cause the document is already loaded and is inserting info from another page via ajax. i've also tried attaching the datepicker after the page is called by the tabs function (see below). that's not working either though. any ideas?
$("#tabs > ul").tabsLoad(currenttab,page); $('#startdate').datepicker({dateFormat: 'm/d/y', rangeSelect: true, numberOfMonths: [2, 3], stepMonths: 3, prevText: '<< Previous Months', nextText: 'Next Months >>', speed: 'fast', showOn: 'both', buttonImage: '/images/calendar.gif', buttonImageOnly: true, onSelect: updateDate, buttonText: 'Calendar'});