Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("input[type=text]").each(function () {
- if ($(this).val() == "") $(this).val($(this).attr('Name'));
- $(this).focus(function () {
- if ($(this).val() == $(this).attr('Name'))
- $(this).val('');
- });
- $(this).blur(function () {
- if ($(this).val() == "")
- $(this).val($(this).attr('Name'));
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement