Distinct type=hidden from display:none



  • Hello. I'd like to know the difference and how to change the recording. var serializeValues = $(this).find("input[type='hidden'], :input:not(:hidden)").not('.table-element').serialize(); I'd like you to choose. type=hidden but not display:none? She doesn't work, she doesn't choose either.



  • (1) Yours input type=hidden - The hidden field. It is not displayed on the web page (open), but is present. It is generally used to transmit information, for example in forms. A display: none - temporarily removes (and not visually conceals) the element from the document. The space it takes is not reserved and the web page is formed as if there was no element.

    Sources: https://webref.ru/css/display https://webref.ru/html/input/type

    (2) Need to be replaced :input:not(:hidden):input:visibleOh, well. http://jquery.page2page.ru/index.php5/%D0%9D%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B5_%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82%D1%8B In your code, it's a jQuery filter, which helps to clarify the sample from the otherlts. He's like a CSS pseudo, from here, and a mix-up, probably.

    More information on references:

    http://jquery.page2page.ru/index.php5/%D0%A1%D0%B5%D0%BB%D0%B5%D0%BA%D1%82%D0%BE%D1%80%D1%8B http://jquery.page2page.ru/index.php5/%D0%92%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B5_%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82%D1%8B http://jquery.page2page.ru/index.php5/%D0%9D%D0%B5%D0%B2%D0%B8%D0%B4%D0%B8%D0%BC%D1%8B%D0%B5_%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82%D1%8B


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2