title: Javascript/jQuery: how to get data value from another class using Javascript or jQuery
body: <p>I tried with this code but didn't work with me:</p>
  
  <pre><code>var data = document.querySelector;
  $( document ) .querySelector('.class2').textContent() {
  $('.class1').val('.class2');
  });
  </code></pre>
  
  <p>The whole idea is that I want to get data from class2 and replace them in class1 and collect them with the Form inputs.</p>
  
  <p>Thank you!</p>