Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. echo "<tr>
  2. <td><input type='text' name='sl_p_codes[]' id='p_code' value='{$data['p_code']}' ></td>
  3. <td><input type='text' name='sl_products[]' id='qty' value='{$data['p_name']}' ></td>
  4. <td><input type='text' id='product_qty' name='sl_p_qty[]' id='qt' value='01' size='2'></td>
  5. <td><input type='hidden' name='sl_unit_cost[]' id='product_unit_price'></td>
  6. <td><input type='text' id='product_total_cost' readonly name='sl_price[]' id='qty' value='{$data['p_price']}' ></td>
  7. <td class='center'><a href='#' onclick='delrow(this);' class='btn btn-danger'>X</a></td>
  8. </tr>";
  9.  
  10. $(document).find('td').each(function(i,v){
  11. if($(this).find('input').attr('id')=='product_total_cost')
  12. console.log($(this).find('input').val());
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement