I have several div
tags with similar id, they all start with cn - , example:
<div id="cn-name">...</div>
<div id="cn-email">...</div>
<div id="cn-pass">...</div>
How can I interact with all of them without having to specify one by one? Was there any way she could do this at the beginning? For example:
/* no css */
#cn-* {
display:none;
}
/* no javascript/jquery */
$('#cn-*').hide();