document.getElementById("field_id") OR if you use Prototype library : $("field_id")
-- David On 28-Mar-08, at 10:49 AM, didia lim wrote: > hi baxter, how can JS get the texfield by ID.. is there any > documentation or example? sorry i'm still new in django > > ----- Original Message ---- > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > To: Django users <django-users@googlegroups.com> > Sent: Friday, March 28, 2008 7:45:57 AM > Subject: Re: javascript in django > > > A custom widget would work, but you don't need to do that. Just have > your JS get the textfield by ID. Done. > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > Try it now. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---