Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <ul id="items">
- <li><p>1</p></li>
- <li><p>2</p></li>
- <li><p>3</p></li>
- <li><p>4</p></li>
- <li><p>5</p></li>
- </ul>
- <script>
- var arr1 = document.querySelectorAll('#items p'); //Первый массив
- var arr2 = [1,2,3,4,5] //Второй массив
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment