Skip to content

Instantly share code, notes, and snippets.

@macieksk
Created June 6, 2014 16:52
Show Gist options
  • Save macieksk/d2d6305e8582cd9d1cc0 to your computer and use it in GitHub Desktop.
Save macieksk/d2d6305e8582cd9d1cc0 to your computer and use it in GitHub Desktop.
jquery onclick click, data extraction, replace, join, map
$('a').filter(function(){
return $(this).text() === 'Display Full Polymer Details';
})
.click()
$("span.se_key").filter(function(){ return $(this).text().match(' Gene Name[s]* ');})
.parent().siblings("td.mdauData")
.map(function(){return $(this).parents("tbody.query").find("a.qrb_structid").text()
+","
+$(this).text().trim().replace(/\s+/g,",");})
.get().join("\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment