Usually you can trust the .toggle function (or .slideToggle) to hide or show whatever you want it to. But occasionally you need to know if something is hidden or shown.
var isHidden = $('#giftMsg').is(':hidden');
Usually you can trust the .toggle function (or .slideToggle) to hide or show whatever you want it to. But occasionally you need to know if something is hidden or shown.
I have defined a click function in the document ready
Later, I do an ajax call and I want to be able to redefine the click so that the link doesn't work anymore (after my ajax call)
$("#submit_request_toggle").click(function() { return false; });
$("#submit_request").fadeOut(500, function() { $("#submit_request_response").html(msg).fadeIn(); } );
}
Here's a jQuery function to make your images slightly opaque (or "disabled" looking), then have them fade in when you rollover them.
Just class your <img> tags with imgfade, like this:
And put this in <head> declaration: