Title: jQuery Error
Last modified: August 20, 2016

---

# jQuery Error

 *  [obs](https://wordpress.org/support/users/oliverspies/)
 * (@oliverspies)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-2/)
 * hi,
 * i try to make the navigation functionality of a single page website with your
   plugin.
    i have listed all my pages one below the other and have set the “rel”
   with the relationship xfn.
 * my navigation now looks like this
 *     ```
       <a href="http://mywebsite.com" rel="post-8">Linktitle 1</a>
       <a href="http://mywebsite.com" rel="post-10">Linktitle 2</a>
       <a href="http://mywebsite.com" rel="post-12">Linktitle 3</a>
       ```
   
 * when i then click a link the following error appears
    `TypeError: $("#" + scrollTarget[
   1]).offset() is null`
 * do you have any idea what causes this?

The topic ‘jQuery Error’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [scroll.to](https://wordpress.org/support/topic-tag/scroll-to/)

 * 0 replies
 * 1 participant
 * Last reply from: [obs](https://wordpress.org/support/users/oliverspies/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-2/)
 * Status: not resolved