I have to render a html page residing in templates/home.html
I have a button in index.html
as:
<div id=browse_app>
<button class=btn btn-large btn-info type=button>Browse</button>
</div>
All I want to do is when I click on Browse
, it takes me to home.html
I tried to write jQuery
as:
// onClick on 'Browse' load the internal page
$(function(){
$('#browse_app').click(function(){
$.load('templates/home.html');
});
});
But this doesn't work since load needs to put data somewhere in current page
How do I get to the home.html
on button click?