Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] jQuery: Menus appear/disappear on click Re: [Solved] jQuery: Menus appear/disappear on click

#72785
kylewiedman
Member

you could use the HTML5 custom data attributes…


Link 1

And modify the javascript to do take the custom attribute


$('ul li span').click(function () {
.... Code ...

linkUrl = $(this).attr('data-target');

..... Code ....
});