I have this code:
$(".trem").click(function(){
var showSlide = $(this).attr("id");
if (showSlide == "mur_tm") {
$("#mur_hm").slideToggle(1000);
}
});
It works fine on desktop, but don't work on mobile. The showSlide variable it's correct (I check it both with an alert and with console.log), but the slideToggle don't work. The inspector don't retrieve any error.
So, which can be the problem? And how I can solve it?
Thanks for help
from JavaScript https://ift.tt/32GntdW
via IFTTT

0 Comments