Hi all
I am using the following code for an textarea box that I have.
I want this box to allow the user input a max of 200 character which is
working but a funny thing happens when you want to go back using the
back arrow, it automatically goes to the end of the sentence ie it doesn't stay where you want it to. I assume the keyup value has something to do with this. I don't fully understand the code below so If someone could help me fix this problem, would be most grateful.
<textarea name="feedback" onkeyup="this.value = this.value.slice(0, 200)"rows="5" cols="40">
<?php if(isset($_SESSION['feedback'])) echo stripslashes($_SESSION['feedback']);?>
</textarea>
Tks
Graham
I am using the following code for an textarea box that I have.
I want this box to allow the user input a max of 200 character which is
working but a funny thing happens when you want to go back using the
back arrow, it automatically goes to the end of the sentence ie it doesn't stay where you want it to. I assume the keyup value has something to do with this. I don't fully understand the code below so If someone could help me fix this problem, would be most grateful.
<textarea name="feedback" onkeyup="this.value = this.value.slice(0, 200)"rows="5" cols="40">
<?php if(isset($_SESSION['feedback'])) echo stripslashes($_SESSION['feedback']);?>
</textarea>
Tks
Graham