I have the following jquery code:
jQuery(function ($) {
$(document).on('click', '.del', function () {
var self = $(this);
parent = self.parents('.transportRow');
parent.remove();
});
});
When i click a link with the class "del" inside a div with the class "transportRow" the div should be removed.
This is working fine in Webkit and Firefox, but not in IE
I get an error that tells me that the object does not support the property or method "remove".
When i inspect it in the debugger, parent seems to be the window, not the div element.
Does anybody know how to get this script running in IE?