Hide content and elements on your page

.hide()


Description: Hide content and elements with this simple hide method, like the .show() method, it's nothing fancy just old school JavaScript.


Example:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>hide example</title>
  <script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
</head>
<body>
 
<p>This paragraph will be hidden.</p>
 
<script>
  bitsyCode( "p" ).hide();
</script>
 
</body>
</html>

Preview:

You can hide this P, using the hide button below

  • Usage

    • How to use:

      Hide the matched elements on the page.

    • USAGE:

      bitsyCode(".element").hide();
  • Options

    • What options are there:

      There are no options for this method.

  • Returns

    • Returns: No return type

      This method does not need to return any type.

Share