SyntaxFix
Write A Post
Hire A Developer
Questions
In your special case it would be
a=$('[myc="blue"][myid="1"],[myc="blue"][myid="3"]');