I have an input field:
How would I get it to remove the pre-defined text (Enter Your Name
This should do it:
HTML
JavaScript
function blankDefault(_text, _this) { if(_text == _this.value) _this.value = ''; }
There are better/less obtrusive ways though, but this will get the job done.