Guest User

Untitled

a guest
Jan 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. if (text == ref_medicamento)
  2. {
  3. var id = <?php echo json_encode($producto->id); ?>;
  4. var sptext = text.split();
  5. var newtr = '<tr class="item" data-id="' + id + '">';
  6. newtr = newtr + '<td class="iProduct" >' + ref_medicamento + '</td>';
  7. newtr = newtr + '<td class="iProduct" >' + nombre_medicamento + '</td>';
  8. newtr = newtr + '<td class="iProduct"><input type="number" class="form-control" id="cant" name="ListaPro" /></td>';
  9. newtr = newtr + '<td><button type="button" class="btn btn-danger btn-xs remove-item"><i class="fa fa-times"></i></button></td></tr>';
  10. $("#validar").append(ref_medicamento," ",nombre_medicamento, '<br/>' );
  11. $("#generar").click(function () {
  12. var cant = $("input[name='ListaPro'] ").val();
  13. })
  14. }
Add Comment
Please, Sign In to add comment