jquery code and problem with chrome

0

I'm having a hard time in the following jquery code.

JQUERY

$(document).ready(function(){
     $('#expand').click(function(){
        $(".container-fluid").slideToggle("slow");
     });
});


$(document).ready(function(){
     $('#expand2').click(function(){
        $(".container-fluid2").slideToggle("slow");
     });
});

I have 2 buttons ( id=expand and id=expand2 ) that execute these functions respectively, the problem is that in chrome the 2nd button literally disappears the content that is inside the .container-fluid2 div, already the .container-fluid is always performed correctly. I tried it on Firefox and everything worked perfectly, why am I having problems with chrome?

    
asked by anonymous 22.07.2015 / 07:21

1 answer

0

Do you have <script url="tuafontedoJquery"></script> added?

It's probably because of this that the chorme does nothing because you do not have any jquery in the cache.

    
22.07.2015 / 12:05