Hide/show multiple div elements using jquery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:text

Description

Hide/show multiple div elements using jquery

Demo Code

ResultView the demo in separate window


<html>
   <head> 
      <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script> 
   </head> 
   <body> 
      <label id="element"></label> 
      <label id="element"></label> 
      <label id="element"></label> 
      <script>

$('[id="element"]').text('test text 1');

      </script>  
   </body>//from   www  .j a va  2s .c  o  m
</html>

Related Tutorials