Forums

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

Home Forums JavaScript jQuery “this” Help Re: jQuery “this” Help

#105331
TheDoc
Member

No, your second solution won’t work. In that case $(this) doesn’t refer to anything.

You’ll need to use some sort of .each() loop or even better create your own function that fires each time you click add to cart.