Skip to content

Instantly share code, notes, and snippets.

@bmentges
Created August 14, 2010 04:49
Show Gist options
  • Save bmentges/523986 to your computer and use it in GitHub Desktop.
Save bmentges/523986 to your computer and use it in GitHub Desktop.
jQuery("#plan").remove()
jQuery("body").append("<table id='plan'>")
jQuery("table").each(function(){
jQuery("#plan").append(
"<tr>"+
"<td>"+jQuery(this).prevAll("p.p1:first").text()+"</td>"+
"<td>"+jQuery(this).find("tr:eq(0) td:eq(0)").text()+"</td>"+
"<td>"+jQuery(this).find("tr:eq(0) td:eq(1)").text()+"</td>"+
"<td>"+jQuery(this).find("tr:eq(2) td:eq(1)").text()+"</td>"+
"</tr>"
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment