Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "<tr>
- <td><input type='text' name='sl_p_codes[]' id='p_code' value='{$data['p_code']}' ></td>
- <td><input type='text' name='sl_products[]' id='qty' value='{$data['p_name']}' ></td>
- <td><input type='text' id='product_qty' name='sl_p_qty[]' id='qt' value='01' size='2'></td>
- <td><input type='hidden' name='sl_unit_cost[]' id='product_unit_price'></td>
- <td><input type='text' id='product_total_cost' readonly name='sl_price[]' id='qty' value='{$data['p_price']}' ></td>
- <td class='center'><a href='#' onclick='delrow(this);' class='btn btn-danger'>X</a></td>
- </tr>";
- $(document).find('td').each(function(i,v){
- if($(this).find('input').attr('id')=='product_total_cost')
- console.log($(this).find('input').val());
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement