Andres Vargas
Andres Vargas

Reputation: 329

uncaught syntaxerror unexpected string

I'm trying to make a drop-down menu, works fine in firefox It does not work in other browsers

get the following error:

jQuery(".parent").hover(  function () {
    jQuery(this).toggleClass("activeli").(".parent").stop(true, true).slideToggle(); << error line
});

This is the web link http://www.jeanca.com/clientes/evoca/

Upvotes: 1

Views: 2172

Answers (1)

aziz punjani
aziz punjani

Reputation: 25776

The problem is toggleClass("activeli").(".parent") Probably should be.

jQuery(this).toggleClass("activeli").find(".parent").stop(true, true).slideToggle();

Upvotes: 3

Related Questions