title: How to get the value of h1 tag using JS?
body: <p>I have 3 pages, the 2 pages are WordPress pages and the other 1 is a custom page template with a form. The 2 pages are created using wp-job manager plugin. The 1st page has had a dropdown menu and contains list of jobs. On the 2nd page is the description of a job.</p>
  
  <p>Now, I want to get the value of h1 tag on the 2nd page after the user click the input button and pass it to the 3rd page and displayed it in one of the input textbox (Position input textbox) using JS.</p>
  
  <p>How to do this?</p>
  
  <p>Here's the link of the <a href="http://homecredit.ph/testEnvironment/job/collections-trainer/" rel="noreferrer">2nd page</a><br>
  <a href="http://homecredit.ph/testEnvironment/4537-2/" rel="noreferrer">3rd page</a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;header class="entry-header"&gt;
      &lt;h1 class="entry-title"&gt;Collections Trainer&lt;/h1&gt;
  &lt;/header&gt;
  </code></pre>