I have a WTF moment here.
I work with jQuery since I don’t remember. Maybe I'm really tired and my brain is not working.
I have been working on the website since two months, and for some reason I have not tested some of its features in Internet Explorer.
Yesterday I started doing this and for some reason $(some_element).parent()does not work.
I installed the sample page on my personal server.
The code
<html>
<header>
<script type="text/javascript" charset="utf-8" src="jquery.js"></script>
</header>
<body>
<div id="tester">
<div id="tester2">
<div id="tester3">
<div id="tester4">
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" charset="utf-8">
$(function(){
parent = $("#tester4").parent();
$(parent).css("width", "800px");
$(parent).css("height", "800px");
$(parent).css("border", "solid 1px red");
console.log(parent);
});
</script>
</html>
source
share