use or condition in jquery code example Example: jquery OR operator $('[myc="blue"],[myid="1"],[myid="3"]');