Javascript examples for jQuery Method and Property:jQuery Method Example
get value of integer element in JQuery
<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>