Title: jquery.js:2 Uncaught Error: Syntax error, unrecognized expression
Last modified: August 16, 2018

---

# jquery.js:2 Uncaught Error: Syntax error, unrecognized expression

 *  Resolved [alex845](https://wordpress.org/support/users/alex845/)
 * (@alex845)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/jquery-js2-uncaught-error-syntax-error-unrecognized-expression/)
 * Hi,
 * When I click on a link, a white pop up with a spinning wheel opens – but that’s
   it.
 * Console gives the following error:
 * jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: /stripboeken/
   strips-murena/ #modal-ready
    at Function.fa.error (jquery.js:2) at fa.tokenize(
   jquery.js:2) at Function.fa [as find] (jquery.js:2) at n.fn.init.find (jquery.
   js:2) at Object.<anonymous> (jquery.js:4) at i (jquery.js:2) at Object.fireWith[
   as resolveWith] (jquery.js:2) at y (jquery.js:4) at XMLHttpRequest.c (jquery.
   js:4)
 * The html code of a typical link in ‘page source’ is like:
 * `<a class="modal-link" title="Isabelle Avondrood" href=" https://www.xxxxx.com/
   stripboeken/strips-de-fantastische-avonturen-van-isabelle-avondrood/">Isabelle
   Avondrood</a>`
 * What I try to make is some wikipedia style preview for internal links. The internal
   links are delivered by the [Seo Internal Links Revisited](https://nl.wordpress.org/plugins/seo-internal-links-revisited/)
   plugin, in which I changed the ‘open in new tab’ option into:
 *     ```
       function SEOLinks_the_content_filter($text) {
   
       	$result=$this->SEOLinks_process_text($text, 0);
   
       	$options = $this->get_options();
       	$link=parse_url(get_bloginfo('wpurl'));
       	$host='http://'.$link['host'];
   
       	if ($options['blanko'])
       		$result = preg_replace('%<a(\s+.*?href=\S(?!' . $host . '))%i', '<a  <strong>class="modal-link</strong>"\\1', $result);
       ```
   
 * So in fact just replace ‘target=”_blank” with ‘class=”modal-link”, unfortunately
   my programming skills end here…

Viewing 1 replies (of 1 total)

 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/jquery-js2-uncaught-error-syntax-error-unrecognized-expression/#post-10618952)
 * Since this is a unique situation, please use the guidelines here for submitting
   a support request: [https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin#support](https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin#support)

Viewing 1 replies (of 1 total)

The topic ‘jquery.js:2 Uncaught Error: Syntax error, unrecognized expression’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-modal.svg)
 * [WP Post Popup](https://wordpress.org/plugins/wp-post-modal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-modal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-modal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-modal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-modal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-modal/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/jquery-js2-uncaught-error-syntax-error-unrecognized-expression/#post-10618952)
 * Status: resolved