T
T
timtimIT2015-10-12 19:56:32
JavaScript
timtimIT, 2015-10-12 19:56:32

Why doesn't the following code work in firefox?

Hello.
Why doesn't the following code work in firefox?

$(".button-map").click( function(event){
  event.preventDefault();
    if ( $(this).hasClass("isDown") ) {
    $("#map > ymaps").stop().animate({"height":500},"slow");	    					
    } else {
        $("#map > ymaps").stop().animate({"height":250},"slow");
    }
    $(this).toggleClass("isDown");
  return false;
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2015-10-12
@Ivanq

Don't know, works for me: jsfiddle.net/c9kjsbwj

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question