Click to See Complete Forum and Search --> : Textareas


IxxI
02-07-2003, 04:03 PM
I'm using asp to create a simple guestbook with two values name and comments. This is fine (otherwise I'd ask this in the asp forum).The problem I have is I want to give the user the chance to edit their comments, much as one can do on here, leaving their original comments there to be modified. The problem I'm having is as I'm calling these from a database I give the textbox (like the subject on here) the value of whatever is in the name section of my database, and I want to give the textarea the value of whatever's in my comments section. But Textareas can't use the value command! What do I do?
IxxI

SORRY PLEASE IGNORE - BEING VERY STUPID YOU PUT IT BETWEEN <TEXTAREA> and </TEXTAREA>!! IT'S LATE - THAT'S MY EXCUSE!

khalidali63
02-08-2003, 08:23 AM
Originally posted by IxxI
I want to give the textarea the value of whatever's in my comments section. But Textareas can't use the value command! What do I do?
IxxI


Well if you meant that you can not assign textarea a value by doing something like this

textarea.value="anyvalue";

Then I am afraid you are wrong,

You should be able to use
document.formname.textareaName.value = "any value";

cheers

Khalid