Greetings. I would like to know the difference and how to change this record var serializeValues = $(this).find("input[type='hidden'], :input:not(:hidden)").not('.table-element').serialize(); to select type=hidden but not display:none ? She for some reason does not work, does not choose either
1 answer
1) Your input type=hidden is a hidden field. It does not appear on the web page (hidden), but is present on it. It is used, as a rule, for information transfer, for example, in forms. And display: none - temporarily removes (and does not visually hide) an element from the document. The place he occupies is not reserved and the web page is formed as if the element was not there.
Sources: display | input type
2) It is necessary to replace :input:not(:hidden) with :input:visible , since : hidden in your code is a jQuery filter that helps refine the selection by other selectors. It looks like a CSS pseudo-class, hence the confusion, probably.
More information on the links:
jQuery - Selectors | jQuery - Visible Items | jQuery - Invisible Elements
:input:not(:hidden)"with:input:visible"? - lexxl