I was asked on my post about showing a loading image when loading AJAX content with jQuery how to disable the button that loads the content while it’s loading, and then re-enable it again once the content is fully loaded. This post shows how to do this, and it will work whether it’s a link, button or some other action which calls the AJAX loading function.
When assigning a click handler to an anchor tag with jQuery you’ll often want to then prevent the browser from clicking through to the actual link. There are two ways I know of to do this with jQuery and these are presented there.
Some time back I posted how to show plain text in a password field and make it a regular password field on focus using jQuery, so that it could show some default text (i.e. "password") before anything was entered and then work like a normal password field when the user started typing text into it.
This post is to answer a question asked in the comments section of my "Show and hide an element with jQuery – Part 1 of 2" post from a couple of years ago. It’s a pretty simple question, asking how to have an element hidden with CSS at first and then show it with jQuery later. It might be triggered automatically, or when a button is clicked or the mouse hovering over something.