Text Area Validation

wxdqz

New Member
I dont know what is wrong here. I understand that textarea and textfield has different ways of displaying values from database.

for eg:
textfield
<input name="txtName" type="text" id="txtName" size="35" value=http://www.webdeveloper.com/forum/archive/index.php/"<%=rs("Name")%>">

textArea
<textarea name="txtAddress" cols="40" rows="8"><%=rs("Address")%> </textarea>

so instead of putting value = "<%=rs("Address")%>", i simply print it out in the textArea.

this works so far...

however, my validation does not work somehow.

this is how it looks

if (document.frmedit.txtAddress.value=="")
{
alert("Please Enter Address");
document.frmedit.txtAddress.focus()
return false;
}


this validation works when i dont have to print the values from the database. can anyone point out what wrong / what i should do? thanks in advance.
 
Top