I am using this code in main page
and on another page
to show and hide some elements based on the current context. This works fine on desktop version but for the mobile version I am getting "#horizontalMenu1" is not a valid selector - error.
So how get rid of this error? Can anyone please help me out with this?