Get the search parameters in href url address after the ?. I'm new to jquery so I want to get all the parameters name and value and as many of my links have different names and values I want to get all of them and pass them through ajax to a php page. I'm doing this so i can stay on the same page always.