I am using a CMS and creating a breadcrumb in a page wrapper that will be applied to multiple pages, and what I wanted to do was take the
var pgTitle = document.title;
$("#pullTitle").text(" " + pgTitle);
<a id="#pullTitle" href="internalpage"> </a>
I think the issue is simply the # in the anchor ID. The # in the jquery selector tells it to look at element IDs (as opposed to a . for classes)
If you remove that this should work!