I have this jQuery to respond to a button being clicked and call a REST method:
$(document).ready(function() { $(\"#btnGetData\").click(function() {
Add button type like this if you are submitting a form:
SUBMIT
UPDATE
From your "Update 2" change first line this :
to this:
we do not need to check integrity of jquery file here so by removing that you will be able to run jquery without any errors. Thanks