Passing variable in Javascript
<p>What is wrong with this code?</p>

<pre><code>&lt;script type="text/javascript"&gt;

   var urlquery = location.href;
   var urlparts = urlquery.split('='); 
   var urlplan  = (urlparts[1]);      

   $(document).ready(function() {
      $('#LDF a').click(function() {  
         $.ajax({
            url: 'src/ldf_dpd_list.php?search-n=urlplan',
            success: function (data) {
               $('#dpd').html(data);
            }
         });
      });
   });
</code></pre>

<p>Hi I am new to javascript and Ajax and trying to pass the variable urlplan, what is the correct way to pass the variable.</p>
