Im trying to add an attribute to a row with a specific class using .attr but nothing happens. Tried giving it to the nav-tag and it works, but when I try to give it to a .row div it doesn't. Anyone who has a clue why? Im not very good at JS.
my code:
$(document).ready(function(){
$('.row.light').attr('data-info', '222');
});