Return to Snippet

Revision: 13797
at May 6, 2009 12:10 by jackomono


Initial Code
$('name').addEvent('focus', function(){ if(this.value=='name') this.value=''; }); $('name').addEvent('blur', function(){ if(this.value=='') this.value='name'; }); $('email').addEvent('focus', function(){ if(this.value=='e-mail') this.value=''; }); $('email').addEvent('blur', function(){ if(this.value=='') this.value='e-mail'; }); $('message').addEvent('focus', function(){ if(this.value=='message') this.value=''; }); $('message').addEvent('blur', function(){ if(this.value=='') this.value='message'; }); });

Initial URL
http://davidpraznik.com/templates/davidpraznik/js/js2.php

Initial Description
das ist in mootools syntax

Initial Title
Foucs/Blur für Formlarteste (hier moo)

Initial Tags

                                

Initial Language
jQuery