This works on a desktop browser, but not on my iOS mobile phone. I tried adding \'touchstart\' and looked at this post\'s solution to check how other\'s got it to work, but
This should help you. Instead of binding it to the body element, bind the event to the document.
$(document).on('click touchstart', '.myContainer', function() {
$(this).toggleClass('myContainer-unselected').toggleClass('myContainer-selected');
});
Also try changing adding the following style to myContainer class
cursor : pointer;