I have this jQuery to respond to a button being clicked and call a REST method:
$(document).ready(function() { $(\"#btnGetData\").click(function() {
Your code works for me: http://codepen.io/danielvaughn/pen/jrNoko
Are you sure that you're properly importing jQuery? If not, run some jquery functions in your console to make sure it works.
SUBMIT