title: how to call url dynamically in jquery?
body: <p>i have a function like this:</p>
  
  <pre><code>function contentDisp()
  {
  $.ajax({
  url : "../Patient/brest/ros_brest.php",
  success : function (data) {
  $("#dynamicContent").html(data);
  }
  });
  }
  </code></pre>
  
  <p>i have a menu like this:</p>
  
  <pre><code>&lt;div  id="leftmenu"&gt;
  &lt;ul id="accordion"&gt;
      &lt;li&gt;&lt;div&gt;BREAST&lt;/div&gt;
          &lt;ul&gt;
              &lt;li &gt;&lt;a href="#" onClick="contentDisp();"&gt;BREAST&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
  </code></pre>
  
  <p>When end user clicks on menu item the concerned page to be display in the div alloted for that . Everything is working fine but now if i want to do the same for all menu items then how i have to do with this: url : "../Patient/brest/ros_brest.php", instead of the url statically how i have to pass it dynamically.</p>
  
  <p>Thank you in advance
  ramsai</p>