title: How to take a value from a link using jquery
body: <p>I want to pass one value through ajax by taking the values from jQuery. But I am using link so I have problems taking the value. I tried the following,</p>
  
  <pre><code>&lt;a id="addpa" class="ActionPopup" href="http://localhost:49951/admin/assignhome/Add?sPId=7"&gt;Add&lt;/a&gt;
  </code></pre>
  
  <p><strong>Jquery Code:</strong></p>
  
  <pre><code>var spId = $("#addpa").prop("href"); // Here i am getting a whole Url
  var thequerystring = getParameterByName("sPId"); 
  </code></pre>
  
  <p>The result is showing undefined. How to take the value of sPId? Give me ideas..</p>