skip to Main Content

Dynamically change the background of a cards – Phpmyadmin

I don't know JavaScript, but I want to use the function to change the background color of several cards. function SetColorRed() { document.getElementById("SettingCard").style.background = "red"; } function SetColorBlue() { document.getElementById("SettingCard").style.background = "blue"; } <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"…

VIEW QUESTION
Back To Top
Search