Hello everyone,

I have little to no JavaScript experience, but if someone could help me achieve a small function, I'd appreciate it.

I have a HTML form with a textfield. The textfield has a value of "Search"

I would this value to disappear on the click of the textfield, making it empty and read for the user to begin typing. Upon clicking elsewhere, I'd like text to return if they did not enter a value.

Also, I need this text to be colored differently then the text the user types, to give it the "grayed out" or "inactive" appearance.

Any help would be appreciated. Thank you all in advance.

Kind regards,
Alex Stanford