I would like to know the following. I am using the date function of jquery. As the HTML code is dynamically created, I can not assign the date.
//Aqui tem um each
$('#div').append('<span class="vor" data-tipo_m="'+v.cob_tipo_mapa+'">'+v.cob+'</span>');
I tried to get the last value of class .vor
and add the date function. But it was not possible.
Then I added manually, as in the example above:
$('.vor:last').data("tipo_m", v.cob);
My question is, this will work in any browser. For the date () of jquery, when I inspect element it does not appear. The way I did create the attribute and then get the value with date () from jquery.