Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

load a page with ajax

<a href="" id="about">About as</a>
<div class="span1" id="AboutSec"></div>

$('#about').click(function(){
    $.ajax({
        type: "GET",
        url: "about.html",
        data: { },
        success: function(data){
            $('#AboutSec').html(data);
        }
    });

});
 
PREVIOUS NEXT
Tagged: #load #page #ajax
ADD COMMENT
Topic
Name
9+7 =