I am working with some simple jQuery to add onfocus/onblur events to a generated form. The following code works in other browsers, except IE7/8:
$(document).ready(function(){
$("input#edit-submitted-first-name").attr('onfocus', "if(this.value=='First Name') this.value = ''");
$("input#edit-submitted-first-name").attr('onblur', "if(this.value=='') this.value = 'First Name'");
});
In IE source, its not even adding it to the inputs. Is there an IE bug about this?