i have created a courses page and create a fullscreen which should be opened when button is clicked modal is also opened but i am having an error in JS.
let value = colc[details.target.id]
if(details.target.tagName == "BUTTON"){
fullscreen.style.opacity = 1;
fullscreen.style.pointerEvents = "auto";
inData = `<div id="fsCard">
<h1>${value.heading}</h1>
</div>
`
}
i am having error in value.heading
i tried to create a modal which should be opened when button is clicked and it is opening but modal dont contain a card which i have created in event listener
New contributor
faryal sz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.