Try it yourself
Here is the HTML:
<input type="text" id="textid" value="Type in something..." onclick="clearit();"/>
Here is the Javascript:
<script type="text/javascript">
function clearit(){
document.getElementById('textid').value = '';
}
</script>

1 comments:

This comment has been removed by a blog administrator.

Post a Comment