Finding line breaks in multiline textbox value
Posted on 2005-04-19
Check out this site!
onFocus="if (this.value == 'Hi!\nCheck out this site!') this.value = ''
I had tried \r and \n\r to no avail, but have no problems when there is no line break in the to-be-removed default text. (I need to test for the default in order to prevent the script deleting custom-entered text)
Thanks for helping!