ASP.NET Core 5 MVC – drop down button not working


I have the code and markup shown here for a button, but for some reason the dropdown functionality does not work – need a fresh pair of eyes please…

<td class="text-right">
    <div class="btn-group">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <div class="dropdown-menu shadow animated--grow-in">
            <a class="dropdown-item">
                <i class="fas fa-pencil-alt"></i> Edit
            <form class="d-inline">
                <a class="dropdown-item"><i class="fas fa-trash-alt"></i> Delete</a>


Have you refered the css file and js file ?

<link rel="stylesheet" href="" >
<script src="" ></script>
<script src="" ></script>

Notice the css file should be refer before other css file and the order of js file could not be reversed

In my case:
enter image description here

Answered By – Ruikai Feng

Answer Checked By – Willingham (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.