Does anyone have a work around for getting the next item of a div that has images added to it dynamically in IE8 or IE10 in compatibility mode. The following code works in FF, Chrome, IE9 and IE10 but not in IE10 compatibility mode or in IE8.
var _nxtItm = $("#" + imgID).next().prop("id").trim();
In those browsers it just returns a blank.
Again, the images and parent divs are added to the page when $(document).ready is fired.