babaganoush
04-08-2005, 02:20 AM
Any ideas on how to detect whether the value in a textbox exceeds the size of the textbox? Can't really use # of characters, because if someone enters iiiii...it will be visibly shorter than wwwww....
Basically I have a form with a textbox, and I want it either size a, or if text overflows, size b. I've tried overflow:visible, and it stretches automatically, but you still can't access the length, even if 100 characters are entered, this.size still returns original value (20).
Any ideas or workarounds would be much appreciated.
Basically I have a form with a textbox, and I want it either size a, or if text overflows, size b. I've tried overflow:visible, and it stretches automatically, but you still can't access the length, even if 100 characters are entered, this.size still returns original value (20).
Any ideas or workarounds would be much appreciated.