Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. $(function() {
  2. $('.asignarConteo').on('click', function(e) {
  3. $('.widthSelect :selected[value!="0"]').closest("tr").each(function() {
  4. //console.log(
  5. // $(this).find(".iarticulo").text(),
  6. console.log($(this).find(":selected").val());
  7.  
  8. var ar = $(this).find(".iarticulo").text();
  9. var usu = $(this).find(":selected").text();
  10. $.ajax({
  11. url: 'http://localhost:3000/AsigUsuarios',
  12. method: 'post',
  13. //persist: true,
  14. //cache: true,
  15. data: { idArticulo: ar, Usuario: usu },
  16. success: function(res) {
  17. console.log(res);
  18. console.log('Entro');
  19. $(".widthSelect").filter(function() {
  20. return this.selectedIndex > 0;
  21. }).prop('disabled', true);
  22.  
  23. //SaveLocalStorage
  24. }
  25. });
  26. })
  27. });
  28.  
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement