Skip to content

Instantly share code, notes, and snippets.

@ronakjain2012
Created April 25, 2020 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronakjain2012/d46d11adf4dcffd4f24ed217a9f37310 to your computer and use it in GitHub Desktop.
Save ronakjain2012/d46d11adf4dcffd4f24ed217a9f37310 to your computer and use it in GitHub Desktop.
Get table cols by scraping phpmyadmin "Propose table structure" link
let arr = [];
$('*[data-uniqueid="637612369"] tr').each((e,i)=>{ if($(i).hasClass("even") || $(i).hasClass("odd")) { var l = ($(i).children('td:first').text().split('.')).length; var ll = $(i).children('td:first').text().split('.')[l-1]; arr.push(ll); } })
console.log(arr);
// run all lines sapratlly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment