Change text value within an element - Javascript jQuery

Javascript examples for jQuery:Text

Description

Change text value within an element

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.6.4.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){// ww  w . j a va2  s .co m
$('.post-read a').text('continue reading');
    });

      </script> 
   </head> 
   <body> 
      <div class="post-read"> 
         <a href="http://www.google.com">Read More</a> 
      </div>  
   </body>
</html>

Related Tutorials