Update the quantity value in a master detail structure

Update the quantity value in a master detail structure

hi, I´m trying to create some basic master-detail structure, and I found a problem. In my structure there´s a button called add to the sale list (adicionar a lista de venda, it´s written in portuguese), and when I click in this button I add a new row in the table, so in this table I got a column called quantity (quantidade it´s written in portuguese) and I want to update the quantity of the product when I click in the icon that´s in the right side of the text. The problem is that only the quantity of the first line it´s update the rest doesn´t update the quantity value...

Here´s the code of the icon that stay in the right side of the text:
  1.     $('.icon-refresh').live('click', function(){
  2.         var idiconrefresh = $(this).attr('id');
  3.         var idtxtquantity = $('input[name=txtupdatequantity]').attr('id');      
  4.            if(idiconrefresh == idtxtquantity)
  5.                console.log($('input[name= txtupdatequantity ]').val());
  6.     })