I'm trying to make it so if I click in a text field, it removes the default value and I can type stuff in. I can do that easily enough. However, I need it so that if anything else is typed, it stays if I click on it.
Example:
A textbox with the default value of "Name". If I click inside it, "Name" is erased and I put "CrazeD". I then click again and "CrazeD" stays there, it doesn't get erased.
Can anyone help me?
I suck badly at Javascript. I've tried looking up tutorials and such for this and I can't find anything.
Any help would be awesome, thanks.