kieran82 — 2013-03-30T07:51:23-04:00 — #1
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.
pullo — 2013-03-30T08:21:03-04:00 — #2
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.
paul_wilkins — 2013-03-30T18:32:31-04:00 — #3
window.location.search provides that information for you.
pullo — 2013-03-31T06:41:05-04:00 — #4
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.