﻿/*
on focus check for the default value, if it's there then set the field blank
on blur check for blank and if it is then set to the default value
*/
$(document).ready(function() {
    $('.clearDefault').focus(function() {
        var defValue = $(this)[0].defaultValue;
        if (defValue == $(this).val()) $(this).val('')
    });

    $('.clearDefault').blur(function() {
        var defValue = $(this)[0].defaultValue;
        if ($(this).val() == '') $(this).val(defValue)
    });
});
