I need to get the query string value from the current URL using JQuery or Javascript,
For example, the current page URL is
http://mydomain/?id=1
the expected value should be 1, What's the best way to get query string value from URL in JQuery or Javascript without using custom function?