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
I found this code difficult to understand.
I request a simple explanation on how to show a dropdown by js or jquery.
It should be id based, not class based.
To open 1 dropdown, not all dropdowns.
Something along the lines:
To open a downdown using the item id, use this:
const dropdownIns = new bootstrap.Dropdown($('#myid').parent().prev());
dropdownIns.show();
or similar.
Motivation and context
The docs example is abstruse.
The text was updated successfully, but these errors were encountered:
Prerequisites
Proposal
This page:
https://getbootstrap.com/docs/5.0/components/dropdowns/#via-javascript
Has this code:
I found this code difficult to understand.
I request a simple explanation on how to show a dropdown by js or jquery.
It should be id based, not class based.
To open 1 dropdown, not all dropdowns.
Something along the lines:
To open a downdown using the item id, use this:
or similar.
Motivation and context
The docs example is abstruse.
The text was updated successfully, but these errors were encountered: