Well, I have this scenario ... my index.html calls another page (home.html) and there are two variables in the index that I want to take home to make my decisions ...
index code.
$("a[data-type]").on('click',function(){
var _nome = $(this).attr('id')
_tipo = $(this).attr('data-type')
dados = {"nome": _nome, "tipo": _tipo};
$.ajax({
type: 'GET',
url: 'home.html',
data : dados,
success:function(data){
$('#conteudo').html(data);
}
});
})
How do I get the name and type properties in the home?