---
title: "Discussion on \"get URL Query params with jquery & js\" | Hashnode"
description: "Discussion on \"get URL Query params with jquery & js\". // Assuming \"?order=1&total=30\"  \nvar urlParams = new URLSearchParams(window.location.search);  \nconsole.log(urlParams.has('order')); // trueconsole.log(urlParams.get('order')); // \"order\"console.log(urlParams.getAll('order')); // [\"order\"]console.lo..."
url: "https://hashnode.com/posts/get-url-query-params-with-jquery-js-c12f5fed0f71/632dea9f3ac18d0d78a00898"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [get URL Query params with jquery & js](https://blog.junaidahmed.dev/get-url-query-params-with-jquery-js-c12f5fed0f71?utm_source=hashnode&utm_medium=feed)

// Assuming "?order=1&total=30" var urlParams = new URLSearchParams(window.location.search); console.log(urlParams.has('order')); // trueconsole.log(urlParams.get('order')); // "order"console.log(urlParams.getAll('order')); // \["order"\]console.lo...

Aug 8, 2018 · 1 min read · blog.junaidahmed.dev  
Read the article

## Written by

[Junaid Ahmed](https://hashnode.com/@junaidahmed)

@junaidahmed

  
[View profile](https://hashnode.com/@junaidahmed)

A half-stack JavaScript developer with a focus on the frontend.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
