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:
- $('.icon-refresh').live('click', function(){
- var idiconrefresh = $(this).attr('id');
- var idtxtquantity = $('input[name=txtupdatequantity]').attr('id');
- if(idiconrefresh == idtxtquantity)
- console.log($('input[name= txtupdatequantity ]').val());
- })