Select input from current row?
<p>I've got a table with rows and a button to add rows to the table.  I increment the id's of the input fields using this code:</p>

<pre><code>$("#add_row_e").click(function() {
    var row = $("#expenses tbody &gt; tr:last"),
        newRow = row.clone(true);
    newRow.find("input").each(function() {
        var num = +(this.id.match(/\d+$/) || [0])[0] + 1;
        this.id = this.id.replace(/\d+$/, "") + num;
        this.name = this.id;
    });
    newRow.insertAfter(row);
    return false;
});
</code></pre>

<p>I then multiply the 2 inputs and output them to a div using this:</p>

<pre><code>$('.multiplier').on('keyup', function() {
    $('#results').html("&amp;pound;" + parseInt($('#E_NONM').val()) * parseInt($('#E_CCNM').val()));
});
</code></pre>

<p>Is there any way I can get this to work for each new row that I add?  I'd imagine it'd have to look at the id's in the row and use that to multiply, however I don't know how to do this.</p>

<p>Also, how do I get the above to output to a input box not a div?</p>
