AND operation
a=$('[myc="blue"][myid="1"][myid="3"]');
OR operation, use commas
a=$('[myc="blue"],[myid="1"],[myid="3"]');
As @Vega commented:
a=$('[myc="blue"][myid="1"],[myc="blue"][myid="3"]');
More Related Contents:
- How can I get the ID of an element using jQuery?
- Select element by exact match of its content
- jquery data selector
- Sort divs in jQuery based on attribute ‘data-sort’?
- How can I change CSS display none or block property using jQuery?
- Set selected option of select box
- Get a list of checked checkboxes in a div using jQuery
- jQuery dot in ID selector? [duplicate]
- What is the fastest method for selecting descendant elements in jQuery?
- jQuery :contains() selector uppercase and lower case issue
- fullcalendar multiple cell select on mobile device?
- jQuery Set Select Index
- How can I exclude $(this) from a jQuery selector?
- Using jquery to get all checked checkboxes with a certain class name
- jQuery : eq() vs get()
- jQuery selector for the label of a checkbox
- Target elements by class prefix
- jquery – Select all elements after a certain element
- How do I get a jQuery selector’s expression as text?
- Difference between CSS selector and jQuery filter?
- Get the current jQuery selector string?
- Find all elements on a page whose element ID contains a certain text using jQuery
- How to select elements which do not have a specific child element with JQuery
- How to detect if a browser is Chrome using jQuery?
- jQuery mobile- For every live tap event should there be an equivalent click event?
- jquery select siblings ‘until’
- Jquery find all ids starting with a string?
- jQuery: using a variable as a selector [duplicate]
- How to use placeholder as default value in select2 framework
- How do I select an element with special characters in the ID?