SHARE
TWEET

Untitled

nikolayneykov May 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve () {
  2.   let addButton = Array.from(document.getElementsByClassName('add-product')[0])
  3.   let textArea = document.getElementsByTagName('textarea')[0]
  4.   let products = Array.from(document.getElementsByClassName('product-title'))
  5.   let productsPrice = document.querySelectorAll('.product')
  6.   console.log(products[0].textContent)
  7.   console.log(products[1].textContent)
  8.   console.log(products[2].textContent)
  9.   //   addButton.forEach(b => {
  10.   //     b.addEventListener('click', add)
  11.   //   })
  12.  
  13.   //   function add () {
  14.   //     let productsPrice = document.querySelectorAll('.product-line-price')
  15.   //       .textArea
  16.   //     console.log(productsPrice)
  17.   //   }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top