You can try to use 'attrs' parameter of the widget constructor.
http://www.djangoproject.com/documentation/newforms/#customizing-widget-instances
Something like this:
attrs = { "onchange" : "this.form.submit()" }

On 29 дек, 02:46, mamcxyz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wanna autopostback when a select change. I know its only set
> onchange="this.form.submit()". But using newforms and recent trunk I
> can't see if exist a way using this:
>
> {% for field in barra %}
> <li>{{ field.label_tag }}</li>
> <li>{% autoescape off %}{{ field }}{% endautoescape %}</li>
> {% endfor %}
>
> I could build the control manually, and in this case is not a terrible
> work, but anyway wonder if is possible using newforms.
--~--~---------~--~----~------------~-------~--~----~
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