Change the action of a prototype form

How can I change the action of a form with a prototype? I have seen many examples with jquery using:

 $("#form1").attr("action","http://actionurl.com");   

but do not have a prototype. Thanks in advance.

+5
source share
1 answer

You can use the writeAttribute method :

$('form1').writeAttribute('action', 'http://actionurl.com');
+10
source

All Articles