I have several forms on an HTML page that look like this:
<form class="pagination" action="https://www.myaction.com" method="post">
...
</form>
<form class="pagination" action="https://www.myaction.com" method="post">
...
</form>
<form class="pagination" action="https://www.myaction.com" method="post">
...
</form>
and I want to change the action to http://www.myaction.com. What is the easiest way do this?
I tried this:
$('.pagination').attr('action').replace('https', 'http');
but that didn't work. Any other simple idea's?