I have below jquery code snippet which sends some request to the server:
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script>
$(document).ready(function () {
$("#approveButton").click(function(){
$.ajax({
method: "POST",
url:"/goHere",
data:{
month: "January",
team: "myteam"
}}).done(function(data){});
});
});
</script>
The approveButton click function is indeed working but I am getting an error like $.ajax is not a function. Can anyone help me with the issue? I am not even using the slim version of jquery, still I am getting the error.
Thanks!