Forums

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

Home Forums JavaScript JQuery and ‘this’ keyword Re: JQuery and ‘this’ keyword

#72045
NightArcher
Member

WOW… I’m sorry I realized when I was looking at stuff, the code above doesn’t even attempt to do what I want it to, and if I wanted to do what it did I would just do

Code:
$(‘li.prev’).addClass(‘test’);

Thanks anyway Chris