Selecting a class and a variable defined ID at the same time
I'm trying to select a class (.home) and an ID (#something) at the same time,
normally I'd use:
$(".home,#something")
but in this instance, the ID is already stored in a variable called "newpage" - I'm trying the following:
$(newpage,".home")
but I'm having no luck, can someone help me with the correct syntax here?
thanks.
(note, selecting the id on it's own with just $(newpage) does work, so I know the issue isn't with my variable, it's just a matter getting both the class and the variable stored ID selected at the same time)