JSFiddle - React, Tailwind, and code Playground

by Marsel

HTML

<input type="text" id="q" />
<input type="button" id="submit" value="submit" />

JavaScript

$(function () {
    $('#submit').click(function() {
        var url = "/tag/";
        url += $('#q').val();
        window.location = url;
    });
});