Your code works beautifully!!!
How do I call the value of diff in another function though? I need to use that value again later on & I can't seem to get it... I am trying to use...
function Prorate(MRC)
{
if (MRC=="PlanMRC")
{
PlanMRC=document.getElementById("PlanMRC").value;
diff=document.getElementById ("diff").value;
PlanMRCp= ((PlanMRC / 30) * diff);
document.getElementById("PlanMRCp").value=(PlanMRCp);
}
}
</script>
Sorry... I am not so good at this... This is code that was for something else previously that I am trying to edit to make work for me :S lol
So it works when I use a form to enter diff manually, but I would like it to call the calculated diff... :)
Thanks again, you rock! ;)