﻿$(function() {
    $("input").focus(function() {
        removePlaceholderFromInput('Min...', this);
        removePlaceholderFromInput('Max...', this);
        removePlaceholderFromInput('Postcode...', this);
        removePlaceholderFromInput('Address...', this);

    });
});

function removePlaceholderFromInput(placeholderText, objectref) {
    if ($(objectref).val() == placeholderText) {
        $(objectref).val('')
        $(objectref).blur(function() {
            if ($(objectref).val() == '') { $(this).val(placeholderText) };
        });
    };
}
