I am trying to pass a value of 600 into a txtbox (Approximate_fee) when sizeindex < "600" and typeindex==4 and ageindex==1.
this is what I have so far:
var typeindex=document.for[0].Inspection_Type.selectedIndex;
var ageindex=document.forms[0].House_Age.selectedIndex;
var sizeindex=document.forms[0].House_Sqft.value;
if (sizeindex < "600" && typeindex==4 && ageindex==1)
{
document.forms[0].Approximate_Fee.value="600";
}
any help appreciated
this is what I have so far:
var typeindex=document.for[0].Inspection_Type.selectedIndex;
var ageindex=document.forms[0].House_Age.selectedIndex;
var sizeindex=document.forms[0].House_Sqft.value;
if (sizeindex < "600" && typeindex==4 && ageindex==1)
{
document.forms[0].Approximate_Fee.value="600";
}
any help appreciated