Posted By

jackomono on 05/06/09


Tagged

mootools formulare


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jackomono


Foucs/Blur für Formlarteste (hier moo)


 / Published in: jQuery
 

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

das ist in mootools syntax

  1. $('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'; }); });

Report this snippet  

You need to login to post a comment.