Clear/Remove/Blank out Value from Input Form

109

In your HTML HEADER add this code

<script type="text/javascript">
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>

In your html input tag add this code

onfocus="clearText(this);"

0 comments ↓

If you found this post useful click the share this button. Contribute below by adding a comment, no registration is required.


There are no comments yet...Kick things off by filling out the form below.

Leave a Comment