ok, I have an update. it looks like maybe the problem is ajax related. I was mistaken on my previous post about when the problem exists. It only happens when datepicker was loaded via ajax. Here is the setup. a <div> is loaded with content from another .html file via the jquery method load(). datepicker then has to be called in conjuction with the live() function in order to work properly. the datepicker will not come up in unless I click somewhere else on the page. Any thoughts? Thanks.
The html file that is called with load()
- <div>
- <p>Date: <input type="text" id="date"></p>
- </div>
- <script type="text/javascript">
- $j(document).ready(function()
- {
- $j('#date').live('click',function(e){
- e.preventDefault();
- $j("#date").datepicker({
-
-
- });
- });
-
- });
- </script>