Im trying to load a new page when i click on a link.
Its possible to achieve that? i tried to use the load method but it doesnt work, maybe im doing it wrong..
$('.sinistros').click(function(){
$(document).load('index.html');
});
Thank u
The jQuery
.load()function is not used to load a new document or page. It is an event listener that fires when the element loads. Basically what this is saying is, listen for a click, and once they click, listen for the document to load. Read more on it here.Try the following instead: