skip to Main Content

Jquery – addclass also to parents

I'm building a multi level menu and would like to add an active class to the element through a function (which is working) but would also want to add this class to it parents elements. <ul class="main-menu"> <li><a href="#" class="nav-link">Maine…

VIEW QUESTION

Highlight text without JQuery

I'm not good at JavaScript and I found a snippet in order to highlight text using JQuery Color. It conflicts with Lightbox2 and I want to convert the snippet to JavaScript. Here's my code: function highlight(elemId){ var elem = $(elemId);…

VIEW QUESTION
Back To Top
Search