I am trying to set an li with a class based on a parameter from a function;
here is my code
but the class is not added when the event is executed.Code:if (ISSUE_support == null) { $('li #' + issue).addClass('highlight'); } else if (issue != ISSUE_support) { $('li #' + ISSUE_support).removeClass('highlight'); $('li #' + issue).addClass('highlight'); }


Reply With Quote
Bookmarks