HTML - Change\Update page contents without refreshing/reloading the page
<script type="text/javascript">
function change_page(id) {
$('#content').load('page.php?id=' + id); //Must echo html code with the content of the page you want to display
}
</script>
<a href="#" onClick="change_page('1')" > One </a>
<a href="#" onClick="change_page('2')" > Two </a>
<a href="#" onClick="change_page('3')" > Three </a>
<div id="content"></div>
Also in HTML:
- Finding HTML Elements
- how to use jquery
- post request html android
- html how to add an image
- aligning image to middle in html
- How to pass variables from js to html node
- fetch html from url
- convert html to pdf
- making a website loader js
- how to make navigation bar in html
- align center html
- basic hmtl code
- salesforce aura input checkbox
- copyright symbol in html
- html timer
- multiple forms in the same line html
- bootstrap 3 table
- foundation dropdown direction
- how to center text in svg
- linking external pages html
- colspan tag html
- p tag
- bootstrap modal
- ionic badge