Created
June 7, 2016 14:08
-
-
Save makshark/b167c3b09b109dbfac6d47f490211389 to your computer and use it in GitHub Desktop.
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
$(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