From eab5b07dc48e0967c63eaf56a01ba31da8687342 Mon Sep 17 00:00:00 2001 From: sanj Date: Mon, 30 Aug 2010 00:11:18 +0530 Subject: [PATCH] erang placeholder js --- itf/templates/erang/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/templates/erang/home.html b/itf/templates/erang/home.html index ad2d441..f1e8381 100644 --- a/itf/templates/erang/home.html +++ b/itf/templates/erang/home.html @@ -7,8 +7,8 @@ $(document).ready(function() { $('input, textarea').each(function() { var hasPlaceholder = $(this).attr("data-placeholder") == undefined ? false : true; if (hasPlaceholder) { - var placeholderText = $(this).data("placeholder") = $(this).attr("data-placeholder"); - $(this).addClass("placeholder").val(placeholderText); + $(this).data("placeholder") = $(this).attr("data-placeholder"); + $(this).addClass("placeholder").val($(this).data("placeholder")); $(this).focus(function() { var currText = $(this).val(); if (currText == $(this).data("placeholder")) {