JSFiddle - React, Tailwind, and code Playground

by Dominik Wilk

HTML

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

JavaScript

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