Skip to content

Instantly share code, notes, and snippets.

@makshark
Created June 7, 2016 14:08
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 makshark/b167c3b09b109dbfac6d47f490211389 to your computer and use it in GitHub Desktop.
Save makshark/b167c3b09b109dbfac6d47f490211389 to your computer and use it in GitHub Desktop.
$(document).ready(function () {
$("#projectButton").click(function () {
$('#listOfNames').empty();
$.post("/get_last_ten_projects_names", function (data) {
$.each(data['projects'], function (index, value) {
$('#listOfNames').append('<li>' + value + '</li>');
});
});
});
$("select#myAwesomeSelect").change(function(){
alert($(this).children(":selected").val());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment