Get Query String Values From URL - jQuery uriget

File Size: 4.12 KB
Views Total: 7866
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Get Query String Values From URL - jQuery uriget

The jQuery uriget plugin provides a basic function which gets the Query String values from an URL using a little bit of jQuery magic.

See Also:

How to use it:

1. Load the minified version of the jQuery uriget plugin after jQuery library.

<script src="" 
<script src="jquery.uriget.min.js"></script>

2. Get the Query String values in an URL.

$( document ).ready(function() {
  var a = $.uriGet('value');

3. The core uriGet function.

/*! URIGET - MIT license - Copyright 2017-2018 MrDioamDev */
(function ($) {
        uriGet: function () {
          var url_string = location.href;
          var url = new URL(url_string);
          var val = url.searchParams.get(arguments[0]);
          return val;


This awesome jQuery plugin is developed by MrDioamDev. For more Advanced Usages, please check the demo page or visit the official website.