Assignment #10: jQuery Events and Effects
In this assignment you will make an anti-multi-click system for a submit button, using jQuery.
-
Some Web users do not
understand that a submit button should be clicked only once, and that they (the user) should
wait for the Web page's response to their click. At a company that
I once worked at, we witnessed
users clicking a form's submit button as fast as they could repeatedly push
the mouse button. This kind of clicking can clog up a Web server's memory and
really slow things down.
-
You will use some jQuery code in a click event for the submit button, which either:
- hides the submit button behind
some text that says something like "Loading..." or "Please wait..."; or
- hides the submit button behind an image; or
- disables the submit button (Which we haven't talked about yet! If you can successfully disable
the button with jQuery, I will give you extra credit.)
when the button is clicked.
The main requirement of the assignment is to keep me (or you) from clicking the
submit button more than once.
Now here are some specific instructions for this assignment: