datepicker late binding

datepicker late binding

Hi,

with dialog, autocomplete, etc, i can do late binding on the object, but for datepicker, this seems to be missing:

  1. <input type="text" id="test" />
  2. <script type="text/javascript">
  3. $("#test").datepicker({beforeShowDay:function(date){return[false,'']}}); // works fine
  4. </script>
  5. <input type="text" id="test2" />
  6. <script type="text/javascript">
  7. $("#test2").datepicker().bind('beforeShowDay',function(date){return[false,'']}); // doesn't work
  8. </script>
How do I do this so that it will work? I need to use late binding