How do you filter out specific controls from an input selection? In the example below, radio filters but submit, button, id, etc don’t seem to filter.
$(':input', '#myForm')
.not('type=radio')
.not('type=submit')
.not('type=button')
.not('id="someID"');
Thanks!
It turns out this issue was specifically related to the submit button. I tried Clive’s options and when submit stayed in the list after type=submit, button and someID should have filtered it I knew something else was going on. I looked at the selected results in the browser and discovered that it wasn’t my button
My submit button:
The outerHTML for the unwanted element:
Therefore filtering out hidden got rid of this element from the selection: