views:

220

answers:

1

Hi, how can I change a form's action with prototype ? I've seen plenty of examples with jquery using:

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

but haven't one with prototype. Thanks in advance.

+1  A: 

You could use the writeAttribute method:

$('form1').writeAttribute('action', 'http://actionurl.com');
Darin Dimitrov