perhaps too easy what I ask, or maybe not. Anyway, I need to call a certain anchor of the page as the link is pressed, it enters a particular URL with a particular Anchor scroll down to that anchor.
I'm doing it with jquery like this:
var anchor = window.location.hash.substring(1);
var newAnchor= "'#anchor-" +anchor+"'";
I think this is not possible be, I certainly have never seen it, I get the following error:
Uncaught Error: Syntax error, unrecognized expression: '#anchor-2015'
Is it possible to call a selector dynamically like this? Was there another way?