I am having an issue with using the jQuery insertBefore() and compatibility with versions of IE 9 and before. I am using the following function:
$( ".wptileblock" ).insertBefore( $( ".content_wrapper" ) );
Basically I am moving the class wptileblock before the class content_wrapper. This appears to function as desired in every browser except IE 9 and before. I've read a lot on the requirement of a null for those versions of IE, however I cannot seem to get it to work. I've tried
$( ".wptileblock" ).insertBefore( $( ".content_wrapper,null" ) );
to no avail, but I'm guessing that I'm just screwing up the null command. Is there a way to code the null command required by IE for this to work in those early versions?
UPDATE
While pulling code out and getting rid of unnecessary items to upload for everyone here, I noticed that jQuery was being called ABOVE the entire of the document. Put it down where it belongs and the IE 9 and earlier compatibility issue is resolved. An additional note, it does not appear that in my argument above, any null command is valid, this is working just fine until we get down to IE 6 (and I sure hope no one is still using that)
$( ".wptileblock" ).insertBefore( $( ".content_wrapper") );