Pass variable by $ .get () jquery

0

I want to pass a variable by $.get() but I do not know how to incorporate it (variable autor is dynamic )

var autor = $('.item').data('autor')
$.get("php/galeria.php", {cat: +autor+}, function(htmlexterno){
    $(".galeria").html(htmlexterno)
})

In advance, I thank you for your help

    
asked by Budu WCR 30.10.2018 в 08:17
source

0 answers