Form submission dosn't work after self-destruction of child
Browser: firefox 14.0.1
In simple test below if you press button "test1", then button "test2" will not work.
In Google Chrome it's ok.
- <html>
- <head>
- <script type='text/javascript' src='/js/jquery-1.5.2.min.js'></script>
- </head>
- <body>
- <? echo $_POST[test]; ?>
- <form action='test.php' id='form' method='post'>
- <input name='test' type='text' value='testval'>
- <button onclick='$(this).remove(); return false;'>test1</button>
- <input type='submit' >
- </form>
- <button onclick='$("#form").submit();'>test2</button>
- </body>
- </html>