JSFiddle - React, Tailwind, and code Playground

HTML

<button type="submit" style="height: 30px" id="btnHelp" name="btnHelp">Help</button>

    <button type="button" style="height: 30px" id="btnClose" name="btnClose">Close</button>

    <button type="button" style="height: 30px" id="btnSave" name="btnSave">Close</button>

JavaScript

$("button").click(function (event) {
        var urlid = $(this).attr('id')
        alert(urlid);
    })