ok so i have it so that when you click on the textbox the input Value erases ... for ex in the text box it says City. when u click the box, it erases, what i wanna do is if nothing is typed when u click off the box it says City. again. thx heres the code im using as of now that erases the text on click
<input name="city" type="text" class="title2" id="city" value="City." size="20" onclick="JavaScript: (document.getElementById('city').value ); document.getElementById('city').value = '';"/>
<input name="city" type="text" class="title2" id="city" value="City." size="20" onclick="JavaScript: (document.getElementById('city').value ); document.getElementById('city').value = '';"/>