Why does that hurt? Sure is better than having onclick handlers
littering your html all over the place.



On Feb 2, 6:27 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi. Is there any clean way to add javascript handler to form field
> (subclas of django.forms.FormField)?
>
> The result should look like:
>
> <input name='some_name' id='id_some_name' onclick='some_js_fct' />
>
> Right now im using 'ugly'
> <script>document.getElementById('id_some_name') ..... </script>
> from template level. But it hurts and is ugly IMHO ;)
>
> Regards
> Michal


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to