I'm struggling with a Web Page that contains a textarea and a link-button, made in this way:
<div id="row">
<textarea class="form-control" rows="3" id="comment" placeholder="Update your Post"></textarea>
</div>
<a href="#" id="btn-post" dusk="postButton" class="btn btn-primary" role="button" data-toggle="modal" data-target="#addPost">
<span class="ion-plus-circled"> Post </span>
</a>
their purpose is the following: at the click of the link a javascript file will be called ("btn-post"), which will capture the content of the textarea to be processed, but the content of the textarea shouldn't be empty and, consequently, I want the button-link to be disabled if there is not at least one character in the textarea, to avoid this situation. Some warnings: I cannot use a submit button and the link-button to be disabled must be exactly that.