JSFiddle - React, Tailwind, and code Playground

by mattography

HTML

<input type='text' class="accountNumber">

JavaScript

var url = "http://localhost:3000/test/tagger.html?id=31415"; 
var regex = /=.*/; // match '=' and capture everything that follows
var accountId = url.match(regex);
$(".accountNumber").val(accountId);