Show hidden elements

Description

The following code shows how to show hidden elements $(":hidden").

Example


<html>
<head>
<script
  src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {<!--from w  ww.j  a va 2  s .co  m-->
    alert($(":hidden").length);
    $(":hidden").show(3000);

  });
</script>
</head>
<body>
  <input type="button" value="Input Button" />

  <input type="checkbox">java2s.com
  </input>
  <input type="hidden" />
  <select><option>Option
    <option /></select>
  <textarea></textarea>
  <button>Button</button>
</body>
</html>

Click to view the demo





















Home »
  jQuery »
    jQuery Example »




Animation
DOM
Event
Form
List
Select
Style
Table
Utilities