Created
January 11, 2013 07:15
-
-
Save ankitnetwork18/4508649 to your computer and use it in GitHub Desktop.
jQuery: .each method pushing html ids into array
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 cities = []; | |
$('div.weather_wrapper').each(function(idx) { | |
cities.push($(this).attr('id')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment