Answer the question
In order to leave comments, you need to log in
js code not working on mobile devices. How to fix?
Good afternoon! Help, please, advice. js code not working in mobile browsers.
var $showAll = $('#show-all'),
$wrapper = $('.wrap'),
$rollBack = $('#roll-back');
$showAll.on({
click: function(){
$wrapper.addClass('shown');
$showAll.hide();
$rollBack.show();
}
});
$rollBack.on({
click: function(){
$wrapper.removeClass('shown');
$showAll.show();
$rollBack.hide();
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question