Title: javascript warning on jquery( &#039;#&#039; ) request
Last modified: August 21, 2016

---

# javascript warning on jquery( '#' ) request

 *  Resolved [Peter Massey-Plantinga](https://wordpress.org/support/users/pwp2/)
 * (@pwp2)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/)
 * The toolbar sends a warning every time one clicks on an anchor with href=”#” 
   because jquery doesn’t handle it.
 * `[15:29:47.944] Error: Syntax error, unrecognized expression: # @ http://localhost/
   wp-includes/js/jquery/jquery.js?ver=1.9.1:4421`
 * the functions in `a11y.js` from line 108-126 should be updated to avoid hrefs
   that are just ‘#’.
 * [http://wordpress.org/extend/plugins/wp-accessibility/](http://wordpress.org/extend/plugins/wp-accessibility/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737416)
 * I’ll mention that to the developer of that library, and look into fixing it in
   my plug-in. That’s work that I incorporated into the plug-in.
 *  [TommyNation](https://wordpress.org/support/users/tommynation/)
 * (@tommynation)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737771)
 * This may be what makes WP Accessability break my The Events Calendar plugin… 
   Switching views between month/list doesn’t work when the WP Accessibility toolbar
   is enabled.
 * Edit: Yep, commenting out those lines 108-127 did the trick!
 * I posted the workaround on The Events Calendar forum as well:
    [http://wordpress.org/support/topic/switching-views-listmonth-nothing-happening](http://wordpress.org/support/topic/switching-views-listmonth-nothing-happening)
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737772)
 * Are you on the latest version of WP Accessibility? I thought that I’d fixed this
   issue; but I may not have covered every use case.
 *  [TommyNation](https://wordpress.org/support/users/tommynation/)
 * (@tommynation)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737773)
 * Yes, latest version I believe (1.2.5). The Events Calendar plugin uses some sort
   of method involving # links and Ajax to change views apparently.
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737774)
 * I don’t think it’s the hash link, specifically – but I’ll do some testing to 
   see what the actual interaction is. I’ve tested this with links in the form of`
   <a href='#'></a>` triggering some kind of scripting and it has worked with all
   my tests; so something more is going on.
 * Of course, commenting out those lines of code is a totally reasonable short-term
   solution, but solutions that require you to edit the plug-in every version aren’t
   the best long-term choice.
 *  [TommyNation](https://wordpress.org/support/users/tommynation/)
 * (@tommynation)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737775)
 * Yeah. Having worked to configure this “The Events Calendar plugin” for a couple
   of days now, I think it has certain issues which may or may not also cause the
   weird link behaviour, but I can only speculate.
 * Yes, at least I have a workaround for this special case with the calendar plugin
   🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘javascript warning on jquery( '#' ) request’ is closed to new replies.

 * ![](https://ps.w.org/wp-accessibility/assets/icon-256x256.png?rev=1097582)
 * [WP Accessibility](https://wordpress.org/plugins/wp-accessibility/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-accessibility/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-accessibility/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-accessibility/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-accessibility/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-accessibility/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [TommyNation](https://wordpress.org/support/users/tommynation/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/javascript-warning-on-jquery-request/#post-3737775)
 * Status: resolved