Wednesday, 4 January 2017

javascript - Jquery getting a url id

I am trying to get an id from a url string generated in php depending on the page you are viewing the id can appear in different places for example


site.com/view.php?id=12&person=23

or


site.com/view.php?loc=man&id=1782&person=43

I just need to get the id section using JQuery any ideas

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...