hi,
I want to add an icon to the right of the username text with code like this:
code works successfully
$("#username").before("<div class='input-group px-0'><input type='text' name='username' id='username' autocomplete='username' value='' placeholder='User Name' class='form-control ew-form-control'><button type='button' class='btn btn-default ew-toggle-username rounded-end' data-ew-action='username '><i class='fa-solid fa-user'></i></button></div>");
but my username text displays two inputs.
how do I insert the input element below into a new div tag with class = 'input-group px-0'
because my input tag is still outside the div tag class = 'input-group px-0'
<input type="text" name="username" id="username" autocomplete="username" value="" placeholder="User Name" class="form-control ew-form-control">
Thank You