jQuery Input Focus/Blur

A quick snippet to clear an inputs default value on focus and revert to the original value on blur:



$('input[type=text]').focus(function()
{
if($(this).val() == (this.defaultValue)) $(this).val('') }).blur(function()
{
if(!$(this).val()) $(this).val(this.defaultValue)
});


The selector assumes input[type=text] only. You may add input[type=password], textarea, etc.

Sell your Rolex, cancel your Visa Card

Here is a list of companies that support SOPA and PIPA. I would expect RIAA and Time, but VISA and Monster Cable, come on. Half of these companies sell overpriced products to an uninformed public.

RIAA
News Corp
TimeWarner
Walmart
Nike
Tiffany
Chanel
Rolex
Sony
Juicy Couture
Ralph Lauren
VISA
Mastercard
Comcast
ABC
Dow Chemical
Monster Cable
Teamsters