I've got a pricing page with two plans. On the first pricing plan, I'm adding a feature where a user can type in a value and a price for that value will return on the right-hand side (onkeyup). See how it works here. This is the code that has already been implemented:
var inputBox = document.getElementById('orderValue');
inputBox.onkeyup = function() {
document.getElementById('deliveryPrice').innerHTML = inputBox.value;
}
I need to add a formula to the output value, (value * 0.025) + 4
. Then I would need to format everything as a currency (£000,000.000
) onkeyup too and output value. Can anyone help?