Happy New Year

What is jQuery?

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Get the button element with the class 'continue' and change its HTML to 'Next Step...' example:

$(".button.continue").html("Next Step...");

Click Event Handling By Button Id

$("#buttonId").on("click",function(event) {
    alert('c-sharphub');
});


OR

$(document).ready(function(){
   $("#buttonId").on("click", function(event) {      
alert('c-sharphub');
  });
});

Click Event Handling By Class Name

$(".buttonClass").on("click", function(event) { alert('c-sharphub'); });

Ajax : Call a local script on the server /api/getWeather with the query parameter zipcode=363621 and replace the element #csharphub-temp's html with the returned text

$.ajax({
   url: "/api/apipath",
   data: {
    zipcode: 363621
   },
   success: function(response) {
    $("#csharphub-temp").html("" + response + "");
   }
   });