0
Answer

JQuery in AJAX

Rajesh Kumar

Rajesh Kumar

12y
1.2k
1
Hi..........
 
How can we use JQuery in AJAX and define technique for JQuery?

$(document).ready(function() {

        $("#getWeatherReport").click(function(){

            $cityName = document.getElementById("cityName").value;

            $.post("WeatherServlet", {cityName:$cityName}, function(data) {

                alert(data);

                $("#weatherReport").html(data);

            });