JSFiddle - React, Tailwind, and code Playground

by dife

HTML

<div class="rtb-text time">
                <label for="rtb-time">            Tempo        </label>
        <input type="text" name="" id="rtb-time" value="" required="" aria-required="true" readonly="" class="picker__input" aria-haspopup="true" aria-expanded="false" aria-readonly="false" aria-owns="rtb-time_root"><input type="hidden" name="rtb-time">
    </div>

JavaScript

$("label[for='rtb-time']").text('Horário');