Guys,
I am very new to javascript and what I am trying to do is make a textbox enabled or disabled depending on the value in another textbox. below is the code i am trying out, i know it does not work and would appreciate any help. the two textbox names are
txtPriceOut
txtPriceInc
Regards
Paul
I am very new to javascript and what I am trying to do is make a textbox enabled or disabled depending on the value in another textbox. below is the code i am trying out, i know it does not work and would appreciate any help. the two textbox names are
txtPriceOut
txtPriceInc
Code:
<script>
function ToggleTextBoxDisplay(){
var txtPriceOut=document.getElementById("PI")
boxDis=("txtPriceOut")
if(boxDis==0)
{
PI.style.visibility = "enabled";
PI.style.display ="block";
}
PI.style.visibility = "disabled";
{
}
</script>
Regards
Paul