skip to Main Content

Reactjs – How to open login modal using a button?

This is my login modal: "use client"; import Link from "next/link"; import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { Card, CardContent, CardFooter, CardHeader, } from "@/components/ui/card"; import { Icons } from "@/components/icons"; import { siteConfig } from "@/config/site";…

VIEW QUESTION

Modals using HTML and Javascript

I am trying to make 2 modals that are triggered by their corresponding buttons. This is my code: <!-- Trigger/Open The Modal --> <p><button id="seeBtn" type="button">SEE</button></p> <p><button id="hearBtn" type="button">HEAR</button></p> <!-- The Modal --> <div class="modal modal-content" id="seeModal"> <span class="close">&times;</span> <p>See…

VIEW QUESTION
Back To Top
Search