How to beat JS error Uncaught Error: Syntax error, unrecognized expression: .main_menu .menu li > a[href*=#] ? Appears in the jquery.js file on this page and on the whole site .
|
1 answer
Invalid attribute selector syntax for <a> tags: the correct format should be [атрибут="значение"] { Описание правил стиля } - therefore, in the selector there are no quotes in which the value should be indicated.
a[href*="#"] - right
- wronga[href*=#]
More details can be found at the link: Attribute selectors
|
.main_menu .menu li > a[href*="#"]. - Sergey Gornostaev