Hi
I have input on my web page that displays default text and clears this text once the user clicks in it.
What I would like to do is have the default text that displays when the input doesn’t have the focus to be a grey color
and once the user clicks in the input the text colors to black.
Where would I put this in this line?
<input type=“text” name=“linkedin” size=“20” maxlength=“40” value=“Add LinkedIn Link” onFocus=“if(this.value == ‘Add LinkedIn Link’) {this.value = ‘’;}” onBlur=“if (this.value == ‘’) {this.value = ‘Add LinkedIn Link’;}” />
Thanks.
Kath