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 :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login