js remove value input

JavaScript
document.getElementById("YourID").value = '';Clear input field on focus
<!-- When the input field gets focus, replace its current value with an empty string -->
<input type="text" onfocus="this.value=''" value="The text">
Source

Also in JavaScript: