I'm having a bit of an issue. Obviously, I'm not properly trained in any type of web development/script! LOL! But I can find my way around...!
I have a textarea that is has a value. Upon clicking I want the text to go away. I have figured this out. BUT I only want the FIRST click inside the textarea to clear out all the text - not the 2nd or 3rd! Having the problem of the typed msg being deleted!!
Here's what I'm using:
onfocus="clearContents(this)
I can't figure out the other string to use to not clear the textarea AGAIN!
I have 2 different functions in my javascript - I'm just not good with java
function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}
function clearContents(element) {
element.value = '';
}
Someone out there PLEASE help a wannabe out lol!!
I have a textarea that is has a value. Upon clicking I want the text to go away. I have figured this out. BUT I only want the FIRST click inside the textarea to clear out all the text - not the 2nd or 3rd! Having the problem of the typed msg being deleted!!
Here's what I'm using:
onfocus="clearContents(this)
I can't figure out the other string to use to not clear the textarea AGAIN!
I have 2 different functions in my javascript - I'm just not good with java

function clearDefault(el) {
if (el.defaultValue==el.value) el.value = ""
}
function clearContents(element) {
element.value = '';
}
Someone out there PLEASE help a wannabe out lol!!