# JavaScript Error :(

**URL:** <https://forum.kirupa.com/t/javascript-error/214322>\
**Category:** web dev\
**Created:** [January 27, 2007, 4:11pm UTC](https://forum.kirupa.com/t/javascript-error/214322 "2007-01-27T16:11:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollie1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ollie1/32/2180_2.png) [@ollie1](https://forum.kirupa.com/u/ollie1)\
**Post date:** [January 27, 2007, 4:11pm UTC](https://forum.kirupa.com/t/javascript-error/214322/1 "2007-01-27T16:11:10Z")

</div>

I have a bit of a problem with some JS practice that doing, the error is:

> Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.

You can see the site here: [http://www.bambambam.co.uk/testing/JS/index2.html](http://www.bambambam.co.uk/testing/JS/index2.html)

I’m not experienced enough with JS to know what I’m doing wrong. All I want the site to do eventually is add up the prices of the items selected in the dropdown boxes, and then write the total to the total div.

Any help/ suggestions would be greatly appreciated. 🙂
