Last active
August 29, 2015 14:09
-
-
Save robbiethegeek/63b40a626a1aa04846d1 to your computer and use it in GitHub Desktop.
Revisions
-
robbiethegeek revised this gist
Nov 19, 2014 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal 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(),indexOf(name) !== 1){ message = "Hi there "+ name + " you are number: " + index +"on the waiting list"; }); alert(message); -
robbiethegeek created this gist
Nov 18, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal 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());} });