posted 13 years ago
Hi,
I have got an <h:inputTextarea
id="looking" cols="30" rows= "2"
value="#{LookingPage.lookingDetails}"
required="false"
onkeyup="this.value = this.value.substring(0, 100);" >
</h:inputTextarea>
I want to try and limit the number of characters entered, this is working fine with the onkeyup="this.value = this.value.substring(0, 100);" , the issue is if I try to edit any character it jumps to after the last existing character...any idea as to how to resolve this?
Thanks