# Simple JS Problem I think, im just being silly

**URL:** <https://forum.kirupa.com/t/simple-js-problem-i-think-im-just-being-silly/106622>\
**Category:** Uncategorized\
**Created:** [April 7, 2004, 12:19pm UTC](https://forum.kirupa.com/t/simple-js-problem-i-think-im-just-being-silly/106622 "2004-04-07T12:19:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_FlashFish](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@imported\_FlashFish](https://forum.kirupa.com/u/imported_FlashFish)\
**Post date:** [April 7, 2004, 12:19pm UTC](https://forum.kirupa.com/t/simple-js-problem-i-think-im-just-being-silly/106622/1 "2004-04-07T12:19:24Z")

</div>

This is my first bash at javascript, and im one function away from finishing.

if(document.forms[1].cut[8].checked)  
thetotal = theprice \* 2;  
else  
thetotal = theprice;

The if else seems to work, i’m fairy sure it’s the thetotal = theprice \* 2; that doesnt work. Thanks in advance, you’re my last chance! The entire html is attatched if it makes a difference.
