redirect and load data dynamically?
<p>I have a menu. Each item in the menu is linked to a form. So in my entire application when an enduser clicks the menu item any time the page to be redirected to the particular(xyz)page and the form to be displayed in a div in that xyz page. Can anyone give me idea how to do this one either in jquery or in javascript whatever it is. I google it a lot but i didnt find the correct solution.</p>

<p>Here is my code what i wrote:</p>

<pre><code>$(document).ready(function() {
$('.load').click(function() {
    window.location.href = 'patient_account.php';
    return false;
    $("a").click(function()
{
$.ajax({
url : $(this).attr("href"),
success : function (data) {
$("#dynamicContent").html(data);
}
});
 return false;
});
</code></pre>

<p>It is redirecting to next page but it is not loading the form related to menu item in the page where it is required.</p>

<p>Thank you in advance,
Ramsai</p>
