SyntaxFix
Write A Post
Hire A Developer
Questions
$('*[id*=mytext]:visible').each(function() { $(this).doStuff(); });
Note the asterisk '*' at the beginning of the selector matches all elements.
See the Attribute Contains Selectors, as well as the :visible and :hidden selectors.