Skip to content

Instantly share code, notes, and snippets.

@whoeverest
Created November 17, 2012 21:44
Show Gist options
  • Save whoeverest/4100523 to your computer and use it in GitHub Desktop.
Save whoeverest/4100523 to your computer and use it in GitHub Desktop.
$(function(){
// console.log($(document).find('div#mw-content-text a'));
// $.get("http://en.wikipedia.org/wiki/Kassina_kuvangensis", function(data){
// description = $(data).find('div#mw-content-text p')[0];
// console.log($(description).text());
// })
$("div#mw-content-text a").mouseover(function(){
function desc(data) {
}
$.get(this.href, function(data){
var description_html = $(data).find('div#mw-content-text p')[0];
desc = $(description_html).text();
})
this.title = desc;
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment