I have tried and failed for over a week now to figure out why my iOS devices won't target a click on a specific element.
In this JSFiddle you can try to click on 1. Background, then when you click on one of the colored buttons it works like a charm, unless you use an iOS device. Why is that? I can'f figure it out.
It is this .colors li that is not going to be trigged in iOS devices for some reason.
$('.colors li').click(function(){
alert('yo');
});
Here are the actual code that doesn't even get triggered
$(document).on('click', '.bg ul.colors li', function () {
$(this).siblings().removeClass('selected');
$(this).addClass('selected');
$('.case_background').css({ 'background': $(this).css('background') });
caseObject.background = $(this).css('background');
});
Just found out that even if I say, nothing is getting logged:
$(document).on('click', function(){ console.log('click') });