The items used in this code are loaded via AJAX. That is why I am using live().
But blur/focus are not recognized. Click() is but not blur/focus.
I am using FF.
The code:
$(".card_signup_form input").live('focus', function(){
$(this).css("color","#666666");
$old_value = $(this).attr("value");
$(this).attr("value", "");
})
.live('blur', function(){
if ($(this).attr("value") == "" ) {
alert($old_value);
};
});
A few things:
Have you tried looking at the debug console in Firefox to see if your code is throwing any errors? Hit Ctrl+Shift+J to bring it up.