On Tuesday 28 Jul 2009 3:21:56 pm Kenneth Gonsalves wrote:
> I have a form with a date field. I load jquery like this:
>
> <script type="text/javascript">
>
> $(document).ready(function(){
> $("#datepicker").datepicker({ altField: '#id_expires',altFormat:
> 'yy-mm- dd', });
>
> });
> </script>
>
> this works as it sets the date in the text input field and saves ok. Since
> it defaults to current date, this is what I need. The problem arises when I
> edit this form. Then a value is passed to #id_expires. I need to set the
> date widget to that value - can not figure out how to do it.
solved - gave my datepicker the id of #id_expires and it works out of the box
--
regards
kg
http://lawgon.livejournal.com
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc