Give data attribute to row not working
-
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');
}); -
Hey!
Please use "jQuery" instead of "$"
as described here:
http://laytheme.com/documentation.html#custom-javascriptAlso document ready wont work, you will need to use the event "newpageshown" as described here:
http://laytheme.com/documentation.html#newpage-events -
Hey!
Please use "jQuery" instead of "$"
as described here:
http://laytheme.com/documentation.html#custom-javascriptAlso document ready wont work, you will need to use the event "newpageshown" as described here:
http://laytheme.com/documentation.html#newpage-events@arminunruh Thanks a lot man :)