I'm puzzled on why this simple bit of code does not work. So to speak, dash()
should be called everytime there has been a keychange. However, I'm getting a bunch of reference errors. I'm doing something wrong and I don't know what.
<input type="text" class="auto" onkeypress="return dash(this)" width="200px">
function dash(e) {
alert(e);
}
Essentially I'm trying to grab the text from the text box, then evaluate it, then change the value of the textbox after.