Skip to content

Instantly share code, notes, and snippets.

@javierarce
Created July 25, 2014 20:29
Show Gist options
  • Save javierarce/297f837db0f91c43564a to your computer and use it in GitHub Desktop.
Save javierarce/297f837db0f91c43564a to your computer and use it in GitHub Desktop.

Revisions

  1. javierarce created this gist Jul 25, 2014.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@

    var locations = [];

    $(".location").each(function(i, l) {
    locations.push($.trim($(l).text()))
    });

    echo locations;