change background image
change background image
hi there
i have code below
- if($('ul#nav li').hasClass('wp_home'))
- {
- $('ul#nav li.wp_home').click(function() {
- $(this).addClass("current_page_item");
-
-
- });
- }
i just want to check whether li contain specific class or not if yes then then add new class to it only after it is click
any help appreciated
thank you