If the URL ends: ?style=product I want to add a class of active to the li with the class of product
?style=product
active
li
product
HTML:
<
var style = ''; if(style == 'product'){ $('li.product').addClass('active'); }