yesamarcos

Manter última opção da mesma pergunta

May 21st, 2019
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(function()
  2. {
  3.     let arr = []
  4.     let q = []
  5.     $("body").on('click', '.link_resposta', function(event)
  6.     {
  7.         event.preventDefault();
  8.         /* Act on the event */
  9.  
  10.         let q = {
  11.             'idpesquisa': $(this).data("idpesquisa"),
  12.             'idpergunta': $(this).data("idpergunta"),
  13.             'idresposta': $(this).children("li").data("idresposta")
  14.         }
  15.  
  16.         arr.push(q)
  17.  
  18.  
  19.  
  20.         let tipo = typeof arr
  21.         console.log(tipo)
  22.         console.log(arr)
  23.     });
  24. });
Advertisement
Add Comment
Please, Sign In to add comment