title: How to add href of each anchor on click to hidden input of single form
body: <p>I need to add the value in the <code>href</code> of each <code>&lt;a href=""&gt;&lt;/a&gt;</code>, on click, to a single hidden <code>&lt;input&gt;</code> value in a single form. This needs to be dynamic and swap out the href value on each link click.</p>
  
  <p>I need to do this with jQuery ideally.</p>
  
  <p>I'm using WordPress and GravityForms and I'm not sure where to start with this.</p>