JSFiddle - React, Tailwind, and code Playground

by Matt Ball

HTML

<a href="http://example.com/?foo=bar&baz=quux">hello</a>

JavaScript

$('a[href*="?"]').each(function() {
    alert("Contains questionmark");
});