Set url for text page to an anchor - Javascript jQuery

Javascript examples for jQuery:Text

Description

Set url for text page to an anchor

Demo Code

ResultView the demo in separate window


<html>
   <head> 
      <script src="https://code.jquery.com/jquery-latest.js"></script> 
   </head> 
   <body> 
      <li class="next">
         <a href="/webcams/tirol/2/a/b">Next</a>
      </li> 
      <script>
$(document).ready(function() {             
    console.log($(".next").attr("href"));
});/*from  w w w  .  ja  va  2s .co  m*/

      </script>  
   </body>
</html>

Related Tutorials