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.
Just so I'm sure that I understood your question correctly, could you post a short example of what you are trying to achieve.
i.e. the code you have and what you would like the output to be.
window.location.search provides that information for you.
I was going to write this, too, but the OP's original question mentions hrefs:
which made me think he might be trying to parse all the links on a page (for example) and attach some kind of behaviour to them.
This topic is now closed. New replies are no longer allowed.