Rajesh Kumar

Rajesh Kumar

  • NA
  • 134
  • 184.6k

JQuery in AJAX

Dec 5 2011 11:55 AM
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);

            });