﻿$(document).ready(function () {
    ErazeZeroOnFocus();
});

function ErazeZeroOnFocus() {
    $("input[type='text'][isNumber='yes']").focus(function (e) {
        //if ($(this).val() == "0") {
        $("#hfTextboxValue").val($(this).val());
        $(this).val("");
        e.stopPropagation();
        //
    });
    $("input[type='text'][isNumber='yes']").blur(function (e) {
        if ($(this).val() == "") {
            $(this).val($("#hfTextboxValue").val());
            e.stopPropagation();
        }
    });
    
}
