'use strict'; $(document).ready($(function() { $(".infoHotspotClick .icon_wrapper").map(function(id, el) { el.addEventListener("click", function () { $(this).parent()[0].classList.toggle('expanded'); }); }); $(".infoHotspotClick .close").click(function () { $(this).parent().parent().parent()[0].classList.remove('expanded'); }); $('.infoHotspotClick input[type="text"]').keydown(function (evt) { evt.stopPropagation(); }); }));