Javascript examples for jQuery Method and Property:text
Hide/show multiple div elements using jquery
<html> <head> <script src="https://code.jquery.com/jquery-2.1.0.min.js"></script> </head> <body> <label id="element"></label> <label id="element"></label> <label id="element"></label> <script> $('[id="element"]').text('test text 1'); </script> </body>//from www .j a va 2s .c o m </html>