Wondering how can i find the 'link' element inside the HEAD tag from variable 'x' using Jquery?
Tried, but below code is not working.
var x = "<html><head> <link> I'm inside head tag </link> </head></html>";
var y = $('<div>' + x + '</div>');
y.find('head')[0].html();
alert(y);