I have my textarea, when it is clicked upon I would like the text to clear
<textarea id="cow" rows="5" name="message" cols="50" onfocus="clear()" >Please provide a link to an image no wider than 500px. </textarea>
and the javascript from external js file:
var cow=document.getElementById("cow").value;
function clear(){ document.getElementById("cow").value=' '; }
I realize I could probably use Jquery, but I'm just messing around trying to learn javascript.