Error on Anchor Tag

Robert Granlund
Robert Granlund used Ask the Experts™
on
I am getting an error in the console from an anchor tag.  I'm not sure how to fix it.
jquery-2.2.4.min.js?ver=null:2 Uncaught Error: Syntax error, unrecognized expression: https://MYSITE.com/for-businesses/#myintroduction

I'm not sure how to fix a jQuery error on an anchor tag.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sam JacobsDirector of Technology Development, IPM

Commented:
Can you post the source with the anchor tag?
Commented:
Probably the # in the url is causing it. Try to fully update your jQuery version (now v. 3.4.1)
Hi,

Try removing the / before the tag
https://MYSITE.com/for-businesses/#myintroduction
by
https://MYSITE.com/for-businesses#myintroduction

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial