jQuery Return elements where ID begins with a certain string
I have a lot of <span>
tags like this <span id='val_Title'></span> <span id='val_Name'></span>
I would like to return all the elements that begin with ‘val_’ and hide them.
How can I do this?
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .