﻿$(document).ready(function(){

var textboxPrevious = '';

// clear input on focus
$('.textbox').focus(function()
{
if($(this).val()==$(this).attr('title'))
{
textboxPrevious = $(this).val();
$(this).val('');
}
});

// if field is empty afterward, add text again
$('.textbox').blur(function()
{
if($(this).val()=='')
{
$(this).val(textboxPrevious);
}
});
});
