I need to dynamically create variables inside a loop, but i have no idea how. I have read about using eval();
but all i found it's just about dynamically changing the value inside the variable.
I need something like this:
$(e).find('unidadeid').each(function () {
countUnidades++;
var Unidade[value inside countUnidades here] = $(this).text();
});
Be clear about your steps, please. I ask not for a solution, but for a help, as a learning. Thank you ;)