Jquery selector condition Using OR condition in combined attribute selector. If you remove the comma the AND condition is invoked and will not return any object because there's no element with the class of "yellow triangle". The code to implement this is not included in the answer and is susceptible to link rot. For example on :has() the jQuery docs state: Dec 29, 2011 · I am wondering if there is a way to have "OR" logic in jQuery selectors. I’m using this selector to hide more than 10 recent posts on my TIL page. Using AND operator in the if condition in jQuery. Jul 18, 2013 · First off, 4000 rows seems a bit excessive and is going to be slow no matter how you think of it. jQuery selectors allow you to select and manipulate HTML element(s). Like all queries, it consumes time and processing power. filter(":contains('cars')"). frbkfzyzxlewkgiyiwataxkqtffylcvnedjttkldgskrijkzcwvojtlyspmdzuofmlex