Hey all,
im REALLY new to javascript/jquery so i may have made some noob mistakes.
i am trying to use the .load() function on a div and use ajax to change the content:
-
$(document).ready(function(){
$("button").click(function(){
$('#ajax').load('ajax/home-ajax.html')
}
}
i have a button in my HTML too
- <button type="button">Test</button>
i have a div on the page called "ajax" but it wont change when i press the button.
the "ajax/home-ajax.html" file exists too so thats not the problem
Thanks in advance!