How to write a jquery selector to match an element has attribute a or attribute b. It must match three elements below
<
Try this
$('a[b="345"],a[a=123] ')
See the jQuery Multiple selector docs.