DEV Community

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

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

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

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git