How to get the parameter value from URL in Jquery?
<p>Hi all i have an url where i need to get an parameter from the url</p>

<pre><code>   var URL="http://localhost:17775/Students/199/Kishore"
   //here from the url i need to get the value 199
</code></pre>

<p>this is what i had been trying but the value is null here </p>

<pre><code>  function getURLParameter(name) { 
    return parent.decodeURI((parent.RegExp(name + /([^\/]+)(?=\.\w+$)/).exec(parent.location.href) || [, null])[1]); 
  };

  $(document).ready(function() {
     getURLParameter("Students");
     //i need to get the value 199 from the url
  });
</code></pre>
