Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jQuery

1
2
3
4
5
6
7
8
9// AJAX JQUERY
$.ajax({
  url: "/api/getWeather",
  data: {
    zipcode: 97201
  },
  success: function( result ) {
    $( "#weather-temp" ).html( "<strong>" + result + "</strong> degrees" );
  }
});
Source by jquery.com #
 
PREVIOUS NEXT
Tagged: #jQuery
ADD COMMENT
Topic
Name
8+8 =