VS 2022 ASP.NET 8 Core MVC simple Bootstrap menu not working
I have a simple ASP.NET Core 8 MVC site created in VS 2022. I have installed Bootstrap 5.3.3, jQuery 3.7.1 using libman and copied the simplest menu sample from GetBootstrap. When the screen width is small, the menu disappears and the burger bars are shown, but nothing happens when I click on it. What have I done wrong?
libman.json:
{
"defaultProvider": "cdnjs",
"libraries": [
{
"provider": "cdnjs",
"library": "jquery@3.7.1",
"destination": "wwwroot/lib/jquery/"
},
{
"provider": "cdnjs",
"library": "jqueryui@1.14.1",
"destination": "wwwroot/lib/"
},
{
"provider": "cdnjs",
"library": "twitter-bootstrap@5.3.3",
"destination": "wwwroot/lib/bootstrap/"
}
],
"version": "1.0"
}
HTML of page:
test