This will hide all ids that have the word ‘themessage’ in them.
The normal way below is great but id you have 100 of them, this is a waste when you can explain this in a shorter way.
#themessage1, #themessage2, #themessage3 {
display: none;
}
Like this…..
*[id^='themessage']{
display: none;
}
