Skip to content

Instantly share code, notes, and snippets.

@rtntdeck
Last active February 16, 2018 21:24
Show Gist options
  • Save rtntdeck/064ef1061bf43fbd2ad1f3f51e368f01 to your computer and use it in GitHub Desktop.
Save rtntdeck/064ef1061bf43fbd2ad1f3f51e368f01 to your computer and use it in GitHub Desktop.

Revisions

  1. rtntdeck renamed this gist Feb 16, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. rtntdeck created this gist Feb 16, 2018.
    5 changes: 5 additions & 0 deletions utility_js.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    //Find number of rows in a table with no id
    $('table > * > tr').length

    //Find number of rows in table with id myTable
    $('#myTable > * > tr').length