.show text contained within a paragraph of a given class with jQuery - Javascript jQuery

Javascript examples for jQuery:Text

Description

.show text contained within a paragraph of a given class with jQuery

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.js"></script> 
  <style id="compiled-css" type="text/css">

.title{//ww  w  . j  ava  2  s . c om
   display:none;
}


      </style> 
  <script type="text/javascript">
    $(window).load(function(){
$(document).ready(function() {
    $("p.title").show('slow');
});
    });

      </script> 
 </head> 
 <body> 
  <p class="title">Spaghetti Kung Fu</p>  
 </body>
</html>

Related Tutorials