以下のように書いてみたのですがうまく動きません。
イメージとしてはテスト1という文字がindex2.phpに入ってくるはずなんですが…
【index.html】
<!DOCTYPE html> <head> <script> $.post('index2.php',$("#id1").serialize()); $(this).closest('form'),attr('action',); </script> </head> <html> <form action="" method="POST" id="id1"> <table> <p>テスト1</p> </table> </form> </html>【index2.php】
<!DOCTYPE html> <head> </head> <html> <form action="" method="GET" class="id2"> <table action=""> </table> </form> </html>よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。