here's my shop.html snippet:
<li><a id="linkShop" href="shop.html">shop</a></li>
<div id="paneMiddle"></div>
and here's my main.js snippet:
$("a[id=linkShop]").click(function(){
$.get("data1.html", function(response){
$("div[id=paneMiddle]").html(response);
alert("hi"+ response);
});
});
data1.html has this content:
<p>data 1 - test</p>
i really don't know why this happened now, i've tried $.get in php before, but now, i'm trying to use jquery w/ jsp, running in tomcat server. idk why nothing goes out in my $.get() function.
help me..pls... T.T