Hi guys,
I am trying to make a javascript function that will add "000" to the end of a textbox value if the user presses k and also add "000000" if they press m. So i don't want the k or m to appear in the textbox and some 0's to appear instead. If anyone could help me out with some code id be very grateful.
Thanks everyone :)
This is where I am at now (Ive done the easy bit, cant find out about detecting if k or m is pressed)
function addZero(x) {
if//I dont know how to find out if it is a k or m
{
x.value += 000;
}
}