I want to write a custom selector to select all fields that are returned by the :hidden selector except for the fields that are of type hidden.
Here’s what I have. It’s breaking the page with no console error.
$.extend($.expr[':'], {
notShown: $(':hidden').not("hidden")
});
hidden-selector[docs]not-selector[docs]attribute-equals-selector[docs]If you’re only interested in form elements, add the
input-selector[docs] to the beginning of the selector.