I'm trying to load the inline style content of a remote xhtml page. I used load previously, but that doesn't work because it loads the css inside the body tag. Therefore, I'm trying to append the style to the head tag of my page.
The problem is that I cannot select the style tag using jQuery. Here's my code:
jQuery.get(contenturl, function(data) {
var css = jQuery(data).find('style').html();
alert(css);
});
The css variable is always null. Any ideas?
Thanks, Pete