Good evening,
I'm attempting to create a functionality where pressing a specific button will open a window. However, I am unsure of how to achieve this using CSS classes.
My initial thought was to add a new class in the CSS file and call it every time the designated button is activated, but I'm struggling with the implementation process.
Any guidance on how to accomplish this task would be greatly appreciated.
html:
<button id="1" onclick="info(this.id)">Küche</button>
js:
function info(id) {
if (id == 1) {
}
}