Created
September 23, 2016 18:31
-
-
Save mhewedy/b3f5c54994298d8be3a83ccaf0f6ce9e to your computer and use it in GitHub Desktop.
Get employee list from http://stackoverflow.com/company/team (I Like JS & JQUERY )
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 characters
| $('.teams li').map(function(){ | |
| var that = $(this); | |
| var o = {}; | |
| ['name', 'job-title', 'location'].forEach(function(e){ | |
| o[e] = that.find('.' + e).text(); | |
| }); | |
| console.log(o); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment