get value of integer element in JQuery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:jQuery Method Example

Description

get value of integer element in 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-3.1.0.min.js"></script> 
      <script type="text/javascript">
    window.onload=function(){//from w ww  .  j  ava 2  s .  com

console.log($('.test').text());

    }

      </script> 
   </head> 
   <body> 
      <span class="test">one</span> 
      <span class="test">two</span>  
   </body>
</html>

Related Tutorials