$F() value with prototype

Hi all, I have a quick question to do with the js framework prototype.

I’m trying to insert some information into a form element with prototype, but I’ve been unsuccessful, I can get a value from a form element, but not insert into it.

i’ve been trying this with no success:

$F('field') = "test";


$F('field').value = "test";

I’ve also had a go at ‘getElementById’ but no luck :frowning:

Any advice or suggestions would really help, cheers.

just talked to some one on the irc for prototype and he told me to do this:

$('id').value = "test";

And it worked! Perhaps this will help someone else :slight_smile: