I am using jQuery on my website, specifically the children
method so I can get to lower levels of my HTML. This works fine on Chrome and Firefox, but when I use it on Internet Explorer, I get the following error:
error: object doesn't support property or method 'children'
Is this an error in IE or am I doing something wrong? Here are the lines where its pulling the error:
parent = $(this).parent().parent().parent();
parent.children().children().children().attr('id');
Is it possible that IE doesn't like it when you write children()
that many times?
Any help would be greatly appreciated. I just don't understand why IE would have a problem with this now, since I have used the children()
method before.