T
timw07
Not sure why I am not getting the approriate number here. I'm looking
to use square foot + 10% if number of stories = 1? Any and all help
for a newb is appreciated!
<script type="text/javascript">
function Calculate()
{
var realSquareFoot = SqFt.value;
var realStories = numStories.value;
var realPitch = pitch.value;
var calcSquareFoot
if (realStories == '1') {
var realPct = realSquareFoot * .1;
calcSquareFoot = realSquareFoot + realPct
alert(realSquareFoot);
alert(realPct);
alert(calcSquareFoot);
}
}
//------------------------
</script>
Square Footage:
<input id="SqFt" type="text" value=0> </input>
<br>
Number of Stories:
<select id=numStories>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
</select>
<br>
Pitch of Roof?
<select id=pitch>
<option value=1>Flat Roof</option>
<option value=2>Medium Steepness</option>
<option value=3>Very Steep</option>
</select>
<br>
<input type="button" onClick="Calculate()" value="Quote">
to use square foot + 10% if number of stories = 1? Any and all help
for a newb is appreciated!
<script type="text/javascript">
function Calculate()
{
var realSquareFoot = SqFt.value;
var realStories = numStories.value;
var realPitch = pitch.value;
var calcSquareFoot
if (realStories == '1') {
var realPct = realSquareFoot * .1;
calcSquareFoot = realSquareFoot + realPct
alert(realSquareFoot);
alert(realPct);
alert(calcSquareFoot);
}
}
//------------------------
</script>
Square Footage:
<input id="SqFt" type="text" value=0> </input>
<br>
Number of Stories:
<select id=numStories>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
</select>
<br>
Pitch of Roof?
<select id=pitch>
<option value=1>Flat Roof</option>
<option value=2>Medium Steepness</option>
<option value=3>Very Steep</option>
</select>
<br>
<input type="button" onClick="Calculate()" value="Quote">