0
I’m having a hard time with 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 perform these functions respectively, the problem is that in Chrome the 2nd button literally disappears the content that is inside the div .container-fluid2
, already div .container-fluid
is always run correctly. I tried it on Firefox and everything worked perfectly because I am having problems with Chrome?
try searching like this in google: "jquery slidetoggle Issue Chrome"
– Daniel Omine
Can you make a jsFiddle that reproduces the problem? I don’t see how that can happen...
– Sergio
Why don’t you just put it all in one $(Document). ready(Function(){});
– lazyFox