I'm using html to create a website and using javascript to add a blink function to some specific texts. I created a function in javascript and entered the id which I created in my html file. I want to add more ids so that my function can work for multiple ids. Here's my javascript function
function blink()
{
let music = document.getElementById("music");
if (music.style.visibility == 'hidden')
{
music.style.visibility = 'visible';
}
else
{
music.style.visibility = 'hidden';
}
}
//Blink timer
window.setInterval(blink, 500);