Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
- <title>FF bug</title>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
- </head>
- <body>
- Click submit, then press F5. Button will still be disabled.
- <form id="submit-form" method="post" action="dump.php">
- <input type="submit" />
- </form>
- <script type="text/javascript">
- $("form").submit(function(e) {
- $(this).children("input[type=submit]").val("Uploading files ...").attr("disabled", true);
- e.preventDefault();
- return false;
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement