Search
 
SCRIPT & CODE EXAMPLE
 

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);
        }
    });

});
Comment

PREVIOUS NEXT
Code Example
Javascript :: refresh event in javascript 
Javascript :: get the parent node from child node 
Javascript :: javascript stop delay 
Javascript :: javascript compare two dates 
Javascript :: how to set height of material ui dialog react 
Javascript :: express start template 
Javascript :: rgb to hex js 
Javascript :: package json add git repo 
Javascript :: split a message js 
Javascript :: create array javascript numbers 
Javascript :: javascript check if elements of one array are in another 
Javascript :: number validation in javascript 
Javascript :: hide label chratjs 
Javascript :: map with promise.all 
Javascript :: follow cursor javascript 
Javascript :: check if a string contains digits js 
Javascript :: ffmpeg convert mp4 to avi 
Javascript :: create angular app with routing and scss 
Javascript :: javascript infinite loop 
Javascript :: difference between slice and splice 
Javascript :: express ejs layout use different layout 
Javascript :: statusbar.sethidden(true) in react native 
Javascript :: js code to remove class 
Javascript :: js wait 
Javascript :: firebase.database is not a function 
Javascript :: jquery alert with yes no 
Javascript :: redux useselector 
Javascript :: print hello world in javascript 
Javascript :: how to reload a module in node.js 
Javascript :: execute javascript when page finished loading 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =