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

