# Firefox 3 + prototype 1.6.2 + shortcut = failed

**URL:** <https://discuss.rubyonrails.org/t/firefox-3-prototype-1-6-2-shortcut-failed/31976>\
**Category:** rubyonrails-talk\
**Created:** [July 17, 2008, 8:51am UTC](https://discuss.rubyonrails.org/t/firefox-3-prototype-1-6-2-shortcut-failed/31976 "2008-07-17T08:51:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [July 17, 2008, 8:51am UTC](https://discuss.rubyonrails.org/t/firefox-3-prototype-1-6-2-shortcut-failed/31976/1 "2008-07-17T08:51:03Z")

</div>

Hi all,

On firefox 3, the following code always return an error:

var account\_id = $(account\_request\_id).value; ---\> account\_request\_id is not defined

But the DOM account\_request\_id is present in the page and this code is working with IE and Safari.

Do I miss something ?

---

<div class="post-metadata">

**Author:** ![Thorsten\_Muller2](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@Thorsten\_Muller2](https://discuss.rubyonrails.org/u/Thorsten_Muller2)\
**Post date:** [July 17, 2008, 9:09am UTC](https://discuss.rubyonrails.org/t/firefox-3-prototype-1-6-2-shortcut-failed/31976/2 "2008-07-17T09:09:42Z")

</div>

shouldn't that be:

$("account\_request\_id").value;

---

<div class="post-metadata">

**Author:** ![Con](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@Con](https://discuss.rubyonrails.org/u/Con)\
**Post date:** [July 17, 2008, 8:32pm UTC](https://discuss.rubyonrails.org/t/firefox-3-prototype-1-6-2-shortcut-failed/31976/3 "2008-07-17T20:32:22Z")

</div>

Hi, I’m using both FF 3.0.1 and the following works for me:

$( ‘element\_name’ )

or

$( “element\_name” )

However, the following doesn’t work in Prototype 1.6:

$( element\_name )

This may have worked in Prototype 1.5.

Good luck,

-Conrad
