Onchange inside form_remote_tag

What is the correct way to use an onchange inside a of a <%=
form_remote_tag %> block ?

When i do it does not
update the DOM element, but posts to a new page. A normal submit button
however works. Is there a proper way to have this form_remote submit
with an onchange ?

thanks
adam

I had the same problem. My rather ugly workaround was to put the form
submit
button inside a hidden div and have the onchange click the button.
I remember reading another way of doing it too, but cant remember what.
Paul

I resolved this problem in a rails app, it’s not pretty but I didn’t
find a better solution :wink:

1

Hope it helps!

2005/11/8, Paul R. [email protected]:

that worked thanks.

i did it like this


.
.
.