You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://getbootstrap.com/docs/5.3/components/collapse/ only tasks about buttons and <a> elements as toggles. However, using checkboxes also works fine, like in the following code provided by ChatGPT. Therefore, it should be pointed out in the docs that you can also use checkboxes as collapse toggles.
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1"><linkrel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"><title>Checkbox Beispiel</title></head><body><divclass="container mt-5"><divclass="form-check"><inputclass="form-check-input" type="checkbox" id="hideCheckbox" data-bs-toggle="collapse" data-bs-target="#contentToHide" checked><labelclass="form-check-label" for="hideCheckbox">
Hide things
</label></div><divclass="collapse mt-3" id="contentToHide"><p>Dies ist der Inhalt, der versteckt werden soll.</p></div></div><scriptsrc="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script></body></html>
The text was updated successfully, but these errors were encountered:
https://getbootstrap.com/docs/5.3/components/collapse/ only tasks about buttons and
<a>
elements as toggles. However, using checkboxes also works fine, like in the following code provided by ChatGPT. Therefore, it should be pointed out in the docs that you can also use checkboxes as collapse toggles.The text was updated successfully, but these errors were encountered: