Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('.asignarConteo').on('click', function(e) {
- $('.widthSelect :selected[value!="0"]').closest("tr").each(function() {
- //console.log(
- // $(this).find(".iarticulo").text(),
- console.log($(this).find(":selected").val());
- var ar = $(this).find(".iarticulo").text();
- var usu = $(this).find(":selected").text();
- $.ajax({
- url: 'http://localhost:3000/AsigUsuarios',
- method: 'post',
- //persist: true,
- //cache: true,
- data: { idArticulo: ar, Usuario: usu },
- success: function(res) {
- console.log(res);
- console.log('Entro');
- $(".widthSelect").filter(function() {
- return this.selectedIndex > 0;
- }).prop('disabled', true);
- //SaveLocalStorage
- }
- });
- })
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement