Getting Contents of Specific Form Fields? [SOLVED]

Getting Contents of Specific Form Fields? [SOLVED]

I have a form with a ton of text input fields on it. I'd like to use jQuery to monitor the numeric contents of 3 specific fields, and put the total on the screen whenever one of them changes.

I know how to do most of the jQuery code for this, but what I don't yet know is, how do I get the contents of just those 3 specific fields? For example, I tried giving the 3 text input fields IDs of "target_1', 'target_2', and 'target_3', and doing this:

function UpdateCurrentTotal()
{
var n1 = parseInt($('#input:target_1').text(), 0);
var n2 = parseInt($('#input:target_2').text(), 0);
var n3 = parseInt($('#input:target_3').text(), 0);
var n4 = n1 + n2 + n3;

$('#TotalsGoHere').text("Total = " + n4 + ".");
}


What is the correct way to do this?

Thanks in advance to all for any info.