New here and I need a bit of help. I have some Java Scripting and I want the result to display as innerHTML, the coding/calculation worked fine displaying as an alert on the page but now I've started to change it to innerHTML I can't get it to work.
I've been on HTMLHelp forums and I was receiving so help but now the dude has turned a little sour and isn't helping but rather insulting my abilities - I put the code together in rush as I had to leave the office and got a couple of errors in my HTML coding wrong. I must be honest I'm not 100% knowledgeable with Java hell not even 5% knowledgeable but I am trying and just need a pointer or 2 to help me finish this page off. This is the first piece of Java I have used.
Here is where I am at -
If you need the .CSS coding to help if you are testing here it is
<form name="Settlement Calculator" action="" method="get">
<div class="formheader"><font color="#ffffff">Settlement Calculator</div>
<div class="formmessage"><font color="#ffffff">Remember to advise the customer that
<font color="#ffffff">Input the Balance of Account <br>
<div class="formmessage2">Do not put £ before the balance</div>
<input type="text" name="input_amount" />
<font color="#ffffff">Discount Percent You are able to offer i.e 20 <br>
<div class="formmessage2">Do not put % after amount</div>
<input type="text" name="discount_amount" />
<td colspan="2" style="text-align:center">
<input type="submit" value="Calculate Settlement" style="width:200px;height:40px" onclick="calculateDiscount();">
<div class="formheader"><font color="#ffffff">Settlement to be paid after discount is £<id='?'> ?</div></td>*
var amount = document.myform.input_amount.value;
var discount = document.myform.discount_amount.value;
var result = amount - (( amount * discount ) / 100);
This is a page on an internal Intranet site and isn't customer facing, Any help is greatly appreciated & thank you.
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
border: 3px solid #ffffff;
width: 650px; margin: 0 auto;