DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cem coduroglu
Cem coduroglu

Posted on

Data-Toggle Doesn't work! Help please.

Hey guys, i just make a button with my udemy teacher. I did the same think as he did. But in my page it doesn't work. What am i missing?
I just created a button but when i click on it the text doesn't opening.

Thank you so much for your reply !

**<body class="w-75 mx-auto my-4">

        <a href="#content" class="btn btn-dark bg-warning" data-toggle="collapse">Read More</a>

    <div id="content" class="collapse">
        <h2>Lorem ipsum dolor sit.</h2>
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti sint nobis vero quaerat ad ex. Et,
            pariatur. Nemo, impedit. Eligendi exercitationem ea provident eos eum nesciunt deleniti quos debitis

    <script src=""
    <script src=""
    <script src=""


Enter fullscreen mode Exit fullscreen mode

Top comments (2)

premjeet profile image
PremJeet • Edited on

I see that you are using bootstrap..Are you reading the docs or just following the teacher?
Cause I see you are missing some stuff that is needed in button attributes

cem_coduroglu profile image
Cem coduroglu Author

I was following the teacher. But i think i figure it out brother. I guess the way that he uses its like timeout. So i check on w3school

🌚 Life is too short to browse without dark mode