Trying to have jQuery access both the event.target and another element on click but receive the error:
Error: Syntax error, unrecognized expression: [object HTMLButtonElement],#element2
Selector code:
$(event.target+",#element2").closest("div").removeClass("alert-info").addClass("alert-success");
Any suggestions what I am doing wrong appreciated.