document.getElementById(“usrEmp”).addEventListener(“keyup”, function(event) {
event.preventDefault();
if (event.keyCode == 13) {
document.getElementById(“calcbutton”).click();
}
});
function price() {
var value = document.getElementById(“usrEmp”).value;
var p = 0;
var flat_rate = 19.99;
var base = 5;
if (value <= base) {
p = flat_rate;
}else {
p = (flat_rate + (value-base)).toFixed(2);
}
document.getElementById("cost2").innerHTML = "Total Cost is: $"+ p;

}

green60-quote-image

arrow_04

Your Cost is:

OUR REPRESENTATIVES ARE HERE TO SERVE