Created
April 25, 2020 12:48
-
-
Save ronakjain2012/d46d11adf4dcffd4f24ed217a9f37310 to your computer and use it in GitHub Desktop.
Get table cols by scraping phpmyadmin "Propose table structure" link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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