Skip to content

Instantly share code, notes, and snippets.

@robbiethegeek
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save robbiethegeek/63b40a626a1aa04846d1 to your computer and use it in GitHub Desktop.

Select an option

Save robbiethegeek/63b40a626a1aa04846d1 to your computer and use it in GitHub Desktop.

Revisions

  1. robbiethegeek revised this gist Nov 19, 2014. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    var name = 'Robert Holmes'
    var message = 'Woohoo, not on the waitlist';
    $('#rsvp-list-waitlist li').each(function(index){
    if ($('.member-name', this).text() == 'Robbie Holmes'){
    console.log(index +": ", $('.member-name', this).text());}
    });
    if ($('.member-name', this).text(),indexOf(name) !== 1){
    message = "Hi there "+ name + " you are number: " + index +"on the waiting list";
    });

    alert(message);
  2. robbiethegeek created this gist Nov 18, 2014.
    4 changes: 4 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $('#rsvp-list-waitlist li').each(function(index){
    if ($('.member-name', this).text() == 'Robbie Holmes'){
    console.log(index +": ", $('.member-name', this).text());}
    });