const spans = $("#mytable span");const values = Object.values(data);spans.each(function(index) { if (index