Last active
August 29, 2015 14:09
-
-
Save robbiethegeek/63b40a626a1aa04846d1 to your computer and use it in GitHub Desktop.
get count of you on waiting list at Meetup.com
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
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment