I am having an issue here: I have a URL like so:
products.php?community=2#1855
and I have an element like so:
<div id="1855"></div>
the element with the id 1855 is being created by jquery.
Anyways, when I load this page, the page does not goto that id. is this due to the fact that element is created by jquery? If so, does anyone know of away I can goto that id after it was created?
I tried this:
$("html, body").animate({ scrollTop: $('#1855').offset().top }, 1000);
but got this error:
Uncaught TypeError: Cannot read property 'top' of undefined