Function .load doesn't work on Chrome on localhost (with Xampp).
On JsFiddle nothing happens if I run the button. My goal is on load to DIV id="lista_ogol" another page. Is it possible?
Thanks for every help, if my code is messy let me know what to change.
Here is my html code:
<ul>
<div id="lista_ogol" class="lista">
<li><a id="rejestracjaID" href="javascript:void(0)" >Rejestracja</a></li>
<li><a href="logowanie.php">Logowanie</a></li>
</div>
</ul>
Here is my Js script:
jQuery(function(){
jQuery('#rejestracjaID').click(function(){
jQuery('#lista_ogol').load('logowanie.php',
function(){alert('Content Successfully Loaded.')}
);
});
})