To get path name with url values in jquery
<p>This is an example URL.</p>

<pre>
http://stackoverflow.com/questions/ask?a=1&b=2
</pre>

<p><strong>question</strong>: I need to fetch path name along with url values like this<pre>/questions/ask?a=1&amp;b=2</pre>
I need jquery or javascript solution</p>
