allida77
10-18-2002, 01:49 PM
<div id="Agt18961">
<span id="AgtName">Tonto Fodder</span>
<span id="Comm">23.56</span>
</div>
I have the following being output by a db. I am trying to access the "Comm" and add or subtract whatever values are passed from the parent form.
var iNewComm = document.getElementById(strOldAgent);
var myTest = iNewComm.childNodes[1].nodeValue;
alert(myTest);
strOldAgent is a value passed from the parent form. Whenver I run this script the alert box is blank. Any ideas? This is for ie5 and up.
<span id="AgtName">Tonto Fodder</span>
<span id="Comm">23.56</span>
</div>
I have the following being output by a db. I am trying to access the "Comm" and add or subtract whatever values are passed from the parent form.
var iNewComm = document.getElementById(strOldAgent);
var myTest = iNewComm.childNodes[1].nodeValue;
alert(myTest);
strOldAgent is a value passed from the parent form. Whenver I run this script the alert box is blank. Any ideas? This is for ie5 and up.