Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery .click() not working in Internet Explorer 9/10
    primarykey
    data
    text
    <p>The below is part of a larger project (obviously) and it's working fine in Chrome, Firefox and Opera but the .click() functions aren't being called by IE9 or 10.</p> <pre><code>jQuery('.current img').hover(function() { var thisElem = jQuery(this); thisElem.parent().parent().find('.hotspot span:not(.select-image)').remove(); thisElem.parent().parent().find('.hotspot img').parent().find('span.select-image').remove(); jQuery('&lt;span class="zoom-out"&gt;&lt;/span&gt;').prependTo(thisElem.parent()).click(function() { z -= .1; z = Math.max(z, 1); jQuery(this).parent().find('img').attr('src', '&lt;?php echo $urlPrefix; ?&gt;/zcard-thumbnail-image/photos/&lt;?php echo $modelId; ?&gt;/low/' + i + '/' + (w * z) + '/' + (h * z) + '/file'); }); jQuery('&lt;span class="select-image"&gt;&lt;/span&gt;').prependTo(thisElem.parent()); jQuery('&lt;span class="zoom-in"&gt;&lt;/span&gt;').prependTo(thisElem.parent()).click(function() { z += .1; z = Math.min(z, 5); jQuery(this).parent().find('img').attr('src', '&lt;?php echo $urlPrefix; ?&gt;/zcard-thumbnail-image/photos/&lt;?php echo $modelId; ?&gt;/low/' + i + '/' + (w * z) + '/' + (h * z) + '/file'); }); }); </code></pre> <p>As far as I can tell, the .click() isn't binding because the elements don't yet exist. If I instead use jQuery(target).prepend(element), then an alert to delay further execution, and then the .click() binds, everything works fine. Unfortunately replacing the alerts with delay() doesn't result in the same.</p> <p>Does anybody have suggestions please?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload