Last active
January 25, 2016 04:32
-
-
Save sadhu89/c2eb40240c14b6573ee4 to your computer and use it in GitHub Desktop.
ajax.js
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 root = 'http://jsonplaceholder.typicode.com'; | |
var options; | |
$.ajax({ | |
url: root + '/users', | |
method: 'GET', | |
async:false | |
}).then(function(data) { | |
options=data.map( u => u.username ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment