Hi,
I'm trying to fake the placeholder attribute for a contact form using jQuery. To do so, I placed an input on top of a label tag (which is basically the value I want inside the input), and used jQuery to hide the label when pressing a key and show it back when the field is empty. I used the keypress and keyup events, like so:
jQuery(function($){
$(".placeholder").each(function(){
var label = $(this).find("label");
var input = $(this).find("input");
[…]
input.keypress(function(){
label.stop().hide();
});
input.keyup(functi