How can I not take elements with a certain id on jqery \ js

eg

var $inputs = $('input:not([type="hidden"]),select,textarea'); 

those. hidden fields are not taken into account but you can write something like

  var $inputs = $('input:not([type="hidden"],[id="ware"]),select,textarea'); 
  • Are you a logic AND or OR interested? If And, then without a comma should work, if OR, then duplicate, replacing type="hidden" with id="ware" - BOPOH
  • need OR. but in the example the code does not work - des1roer
  • "duplicate" - it was meant to duplicate not part, but everything: var $inputs = $('input:not([type="hidden"]),input:not([id="ware"]),select,textarea'); - BOPOH
  • so didn’t work either - des1roer
  • one
    id on the page must be present in a single form. In general, something like this: jsfiddle - Alexander Igorevich

0