Get hidden form fields : Form Controls « jQuery « JavaScript DHTML






Get hidden form fields

    
<html>
  <head>
    <style>
      .test{ border: 1px solid red; }
    </style>
  
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
           $("span:last").text($("input:hidden").length + " hidden inputs.");
    });

    </script>


  </head>
  <body>
      <span></span>
        <div></div>
        <div style="display:none;">Hider!</div>
        <div></div>
        <div></div>
        <form>
            <input type="hidden" />
            <input type="hidden" />
            <input type="hidden" />
        </form>
        <span></span>
  </body>
</html>

          

   
    
    
    
  








Related examples in the same category

1.Get form image control
2.Get form password field
3.Set value to disabled form field
4.Query submit button
5.Query reset from form
6.Query form file input field
7.To trigger the select event on all input elements
8.Clicking the button enables the input next to it.
9.Build a list of all the values within a form.
10.Hides all the input elements within a form.