//i am trying to press an href
<div id="block-left">
<a href="#serv/compA">Company Administration</a>
我想点击href,首先我想去页面services.php,然后从href加载到div =“serv-content”页面。
//这是我正在尝试的脚本
$(document).ready(function(){
$("#block-left a").click(function() {
var page= this.hash.substr(1);
window.location("services.php");
$("#serv-content").load(page);
});
return false;
});