I have the following variable:
var prodadicional = $(this).attr('data-adicionais');
It returns two string values that are: Hamburger and Bacon.
How do I place them within a array
?
I tried to pass inside array
and count with length
but only returns value 1, being that it has two values.
var dadosarrayAdicional = [prodadicional];
var teste = prodadicional.length;