Return to Snippet

Revision: 43270
at April 6, 2011 07:04 by coryschadt


Updated Code
$("#email")
  .val("Enter Your Email Here")
  .css("color", "#000")
  .focus(function(){
  $(this).css("color", "#c1403e");
  if ($(this).val() == "Enter Your Email Here") {
  $(this).val("");
  }
  })
  .blur(function(){
  $(this).css("color", "#000");
  if ($(this).val() == "") {
  $(this).val("Enter Your Email Here");
  }
});

Revision: 43269
at March 20, 2011 11:24 by coryschadt


Updated Code
$("#email")
	.val("Enter Your Email Here")
	.css("color", "#000")
	.focus(function(){
		$(this).css("color", "#c1403e");
		if ($(this).val() == "Enter Your Email Here") {
			$(this).val("");
			}
			})
			.blur(function(){
        $(this).css("color", "#000");
        if ($(this).val() == "") {
            $(this).val("Enter Your Email Here");
        }
    });

Revision: 43268
at March 20, 2011 11:23 by coryschadt


Initial Code
$("#email")
	.val("Enter Your Email Here")
	.css("color", "#000")
	.focus(function(){
		$(this).css("color", "#c1403e");
		if ($(this).val() == "Enter Your Email Here") {
			$(this).val("");
			}
			})
			.blur(function(){
        $(this).css("color", "#000");
        if ($(this).val() == "") {
            $(this).val("Enter Your Email Here");
        }
    });

Initial URL


Initial Description


Initial Title
Hide form value  - jQuery

Initial Tags
jquery

Initial Language
jQuery