Getting Contents of Specific Form Fields? part 2 [SOLVED]

Getting Contents of Specific Form Fields? part 2 [SOLVED]

My code for this still isn't working for some reason. Here's the html:

<table width = "100%" class="alloy_planner_targets">
   <tr>
      <td align = "center">
         <b>
         Target weight</b>
         <br />
         <input type="text" name="target_weight" value="2300" maxlength="50" size="50" id="" style="width:140px; text-align: center"  />
      </td>
      <td align = "center">
         <b>
         Target iron %</b>
         <br />
         <input type="text" name="target_iron" value="30" maxlength="50" size="50" id="target_iron" style="width:140px; text-align: center"  />
      </td>
      <td align = "center">
         <b>
         Target copper %</b>
         <br />
         <input type="text" name="target_copper" value="40" maxlength="50" size="50" id="target_copper" style="width:140px; text-align: center"  />
      </td>
      <td align = "center">
         <b>
         Target lead %</b>
         <br />
         <input type="text" name="target_lead" value="30" maxlength="50" size="50" id="target_lead" style="width:140px; text-align: center"  />
      </td>
   </tr>
</table>


And here's the javascript:

function UpdateCurrentICLTotal()
{
   var n1 = parseInt($('#target_copper').html(), 0);
   var n2 = parseInt($('#target_iron').html(), 0);
   var n3 = parseInt($('#target_lead').html(), 0);
   var n4 = n1 + n2 + n3;
   
    $('#ICLTotalsGoHere').text("iron + copper + lead Currently = " + n4 + ".");
}


$(document).ready(function()
{
   $('#target_copper').change(function()
      {UpdateCurrentICLTotal()}
     );
   
   $('#target_iron').change(function()
      {UpdateCurrentICLTotal()}
     );
   
   $('#target_lead').change(function()
      {UpdateCurrentICLTotal()}
     );
   
});



The change function is working correctly - but all the variables in UpdateCurrentICLTotal() are being set to NaN, even though the fields do have numbers in them.

What's the correct way to read in the contents of an input field in this case?

Thanks very much in advance for any info.