I was looking at this jQuery code snippet:
$("#Filter ul input:checked").each(function () {
if (!$(this).prop("disabled") && !$(this).hasClass("ignoreInput")) {
Is there a way to simplify this into just one selector? It seems like I'm handling too many elements within the if
statement.
Would it be more efficient to use .find(selector)
instead of having everything in a single selector?
$(document.body).find("#Filter ul ...)