input[type=hidden]
This is a DOM selector (jQuery, CSS, etc.) for any input
elements where the type
attribute is "hidden"
. It has nothing to do with actually displaying or hiding these elements, except that browsers do not display <input type="hidden" />
elements.
visibility="hidden"
This sets the CSS visibility
property to "hidden", which tells the browser not to display any elements (elements) to which you apply this attribute. This is all about displaying HTML elements and has nothing to do with selectors or form elements, as another example does.
source share