-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using input-group splits when form.field is added #40850
Comments
Hello @jbhrfx9280. Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case on CodePen or StackBlitz and report back with your link, Bootstrap version, and specific browser and Operating System details. |
Changing behavior to the textarea <div class="input-group input-group-sm mb-1">
<span class="input-group-text">With textarea</span>
<textarea class="form-control" id="myTextarea" aria-label="With textarea"></textarea>
</div>
<button id="btn">Set Text</button>
**And handling form data from textarea**
<script>
document.getElementById('submitBtn').addEventListener('click', function() {
let textareaValue = document.getElementById('myTextarea').value;
console.log('Textarea value:', textareaValue);
// You can then do something with the textarea value like validation or sending it via AJAX
});
</script> |
I am wild guessing, that the form tag And what exactly are you trying to achieve? Trying to set placeholder text for the textarea? |
As the issue was labeled with |
Prerequisites
Describe the issue
See below example with {{ form.field }} added
FYI - I'm new to bootstrap 5 and HTML design, more of a coder so clearly I can be doing this wrong.
Framework: Django
Reduced test cases
see below without form.field added
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome, Microsoft Edge
What version of Bootstrap are you using?
5.3.3
The text was updated successfully, but these errors were encountered: