I have some jquery/javascript code that alters some things on document ready and when a form input is changed. How do i make this form specific?
$(function() {
$('input[name="item_price[]"]').live('change', function () {
var tr = $(this).parent().parent();
CalculateData(tr);
});
If my form's id tag is "my_form", how do i make this little snippet occur only if item_price[] in the "my_form" is being changed and not all instances of the item_price[] input?