﻿$(document).ready(function() {
    // Whenever one of the search textboxes get focus, remove the default text, and replace it on blur if no search term entered

    // Clear search boxes
    $('input[name=searchTerm]').focus(function(e) {
        // Only clearing search boxes
        if ($(this).val().indexOf("search") < 0) return;
        $(this).val('');
    });

// Not replacing because it can be a bit annoying if they're wanting to search e.g an author and they use the author drop down
//    $('input[name=searchTerm]').blur(function(e) {
//        // Only clearing search boxes
//        if ($(this).val() != '') return;
//        $(this).val('Enter search term');
//    });
});
