I'm making a web app to save bookmarks. I have a quick add feature that adds the URL to the favourites and collects the Title and Description for the site. So far I've got this:
var url = "http://google.co.uk";
var title = "";
var description = "";
$.get(url, function(data) {
description = $(data).find('meta[name=adescription]').attr("content");
title = $(data).find(title).text();
});
Unfortunately, this code does not work. Please help me fix it :). Thanks