title: Uncaught Error: Syntax error, unrecognized expression: #[object Object]
body: <p>The code I am getting the error for, after doing research I can not understand why this error keeps coming up. The line of code was working before but now this is crashing my entire project.</p>
  
  <pre><code>function HomePageView_GetActiveTopicParentId(id) {
      return $("#" + id).attr("egain-parent-identifier");
  }
  </code></pre>
  
  <p>the second set of code</p>
  
  <pre><code>function HomePageController_TopicsViewChanged(id) {
  sessionStorage.setItem(CURRENT_TOPIC_PARENT_ID, HomePageView_GetActiveTopicParentId(id));
  sessionStorage.setItem(CURRENT_TOPIC_ID, HomePageView_GetActiveTopic(id));
  $.mobile.changePage("#ViewTopicPage");
  }
  </code></pre>