Thank you very much, I originally used onclick, I switched to onselect hoping it would resolve the problem, turns out that attempt at a resolution just worsened things ¬_¬
I'm having trouble getting the getElementById() command working properly, I've tested in various browsers and looked around to see if I can find the issue elsewhere and compared my code with others...
I want to check the input box value on page load,
and if it is equal to "Enter Your Search Terms Here"
then change the the text colour to grey,
else leave it black.
Kor:
Thanks for your suggestion, but interfacetricks is right, {$search_terms} is a PHP variable (alas the site I am working with is cursed with 'Smarty') that sets the search terms as a session...
I have a simple onblur/onfocus command on an input tag that changes "Enter Your Search Terms Here" (which is greyed out) into a blank field when focused and if...