﻿$(document).ready(function () {
    $(".hinttext").each(function () {
    
        var hintText = $(this).attr("hintText");
        $(this).val(hintText);
        $(this).addClass("hintext-active");

        $(this).bind("focus", function () {
            $(this).removeClass("hintext-active");
            if ($(this).val() == hintText) {
                $(this).val("");
            }
        });

        $(this).bind("blur", function () {
            if ($(this).val() == '') {
                $(this).addClass("hintext-active");
                $(this).val(hintText);
            }
        });

    });
});
