update html page without refresh

Solutions on MaxInterview for update html page without refresh by the best coders in the world

showing results for - "update html page without refresh"
Emelie
24 Sep 2017
1$(function(){
2    // don't cache ajax or content won't be fresh
3    $.ajaxSetup ({
4        cache: false
5    });
6    var ajax_load = "<img src='http://automobiles.honda.com/images/current-offers/small-loading.gif' alt='loading...' />";
7
8    // load() functions
9    var loadUrl = "http://fiddle.jshell.net/deborah/pkmvD/show/";
10    $("#loadbasic").click(function(){
11        $("#result").html(ajax_load).load(loadUrl);
12    });
13
14// end  
15});
16