Mam taki formularz:
<form action="link" method="post" name="platnosc" id="platnosc">
Chciałbym np. przez jquery zmienić "action" i ustawić inny link przekierowania.
p.s Czyli chodzi mi o zaznaczenie tego formularza i zmiane "action".
<!DOCTYPE html> <html> <head> <title>Test</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script> $(function(){ $('a').click(function(e){ e.preventDefault(); $('a:hidden').show('slow'); $('form').attr('action',$(this).attr('href')); $(this).hide('slow'); }); }); </script> </head> <body> <form method="POST" action="test1.html"> <input type="submit" /> </form> <div> <a href="test1.html" style="display:none;">Test1.html</a> <a href="test2.html">Test2.html</a> <a href="test3.html">Test3.html</a> <a href="test4.html">Test4.html</a> </div> </body> </html>