I am having a very hard time with some seemingly simple code.
My code:
[CODE]function UpdatePrice(BBID) { // v1.0
document.Edit.eval(‘Price’+BBID).value = (document.Edit.eval(‘DPrice’+BBID).value) * (1 + (document.Edit.eval(‘Markup’+BBID).value) / 100);
}
function UpdateMarkup(BBID) { // v1.0
document.Edit.Markup[‘+BBID+’].value = (((document.Edit.Price[‘+BBID+’].value / document.Edit.DPrice[‘+BBID+’].value) – 1) * 100);
}
Page to see the errors:
[url]http://build.contenderbicycles.com/admin/edit_bb.asp
Enter a price in DPrice and then input a Margin and it is supposed to calculate the Price. Or enter a DPrice and Price and it should calculate the Margin.
Travis Cable