# $F() value with prototype

**URL:** <https://forum.kirupa.com/t/f-value-with-prototype/260029>\
**Category:** web dev\
**Created:** [May 11, 2008, 9:52pm UTC](https://forum.kirupa.com/t/f-value-with-prototype/260029 "2008-05-11T21:52:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [May 11, 2008, 9:52pm UTC](https://forum.kirupa.com/t/f-value-with-prototype/260029/1 "2008-05-11T21:52:18Z")

</div>

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:

```auto

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

and

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

```

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

Any advice or suggestions would really help, cheers.

---

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [May 11, 2008, 10:00pm UTC](https://forum.kirupa.com/t/f-value-with-prototype/260029/2 "2008-05-11T22:00:25Z")

</div>

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

```auto

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

```

And it worked! Perhaps this will help someone else 🙂
