Skip to content
Advertisement

Tag: dropdown

React text dropdown toggle (toggles all)

I am trying to make a small text dropdown. When you click on the heading text, the p tag will show. It is working, but.. it is toggling all of them, when I only click on of them. I have multiple “li” tags with text and the function. So I am not looping anything Answer Based on your question and

How can I make this dropdown in react native?

Here is the default structure for dropdown This is when you click the dropdown I’m new to react native and I was wondering how can I make this kind of structure. If anyone can help, thanks a lot. Answer I think you’ll have a little more success if you call this component an “accordion” in your searching. “Dropdown” sort of

Bootstrap 5: Error when showing dropdown via JavaScript

I’m trying to show a dropdown via JS. Unfortunately it seems like there’s a bug in Bootstrap 5. In this example code, showing the modal works, but showing the dropdown throws an exception: Uncaught TypeError: Cannot read property ‘classList’ of undefined at _e.show (dropdown.js:140) Am I doing something wrong or is this a bug? Thanks in advance. Answer I got

Advertisement