G
Guest
Quick question. I have some java script that looks like this;
imgObj.parentNode.parentNode.childNodes(10).childNodes(0).value=imgObj.parentNode.parentNode.childNodes(6).innerText-imgObj.parentNode.parentNode.childNodes(9).childNodes(0).value
This takes a cell in a datagrid (innertext) and subtracts the value of a
text box (value) in another cell, then populates a second text box in a third
cell with the value. it works except for the value it is populating in the
third cell is "NaN", which I think is "Not a Numeric". I tried using the
val() clause to make the values numbers, but this did not work. How do I make
the text values numbers in javascript?
Thanks!
imgObj.parentNode.parentNode.childNodes(10).childNodes(0).value=imgObj.parentNode.parentNode.childNodes(6).innerText-imgObj.parentNode.parentNode.childNodes(9).childNodes(0).value
This takes a cell in a datagrid (innertext) and subtracts the value of a
text box (value) in another cell, then populates a second text box in a third
cell with the value. it works except for the value it is populating in the
third cell is "NaN", which I think is "Not a Numeric". I tried using the
val() clause to make the values numbers, but this did not work. How do I make
the text values numbers in javascript?
Thanks!