Skip to content

Instantly share code, notes, and snippets.

@anishmenon
Created December 5, 2016 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anishmenon/a960f907bacb005ba1963252c3a6c5c1 to your computer and use it in GitHub Desktop.
Save anishmenon/a960f907bacb005ba1963252c3a6c5c1 to your computer and use it in GitHub Desktop.
sanjaytestlathtml
// Shorthand for $( document ).ready()
$(function() {
$.get( "{% url 'sanjay' %}", {'q':'xyz'})
.done(function( returndata ){
if(returndata.status == 'success')
{
$.each(returndata.arr, function( index, value ) {
console.log(value.lat);
});
}
});});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment