I have looked on google to find a way to remove text on focus but couldn’t figure our how to add it back if nothing was typed in the field.
This is what I have so far…
onfocus="if(this.value == 'Name*') { this.value = ''; }" value="Name*"
This will remove the “Name*” but then it is completely removed for good even if I don’t type in the field.
Use the onblur event, with a similar if statement saying if it equals nothing then this.value should equal my place holder text.
onblur