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.
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.
You could use the writeAttribute method:
$('form1').writeAttribute('action', 'http://actionurl.com');