I have a
I need a javascript method to clear the value of the textbox when the focus is
For those coming across this nowadays, this is what the placeholder
attribute was made to do. No JS necessary:
<input type="text" placeholder="A new value">
use sth like
<input type="text" name="yourName" placeholder="A new value" />
Your HTML code,
jquery code,
$("#textboxID").val('');