title: How to pass the data of an attribute still input field?
body: <p>How can I get through code jQuery the attribute data <code>data-target</code> only by clicking on it link:</p>
  <pre><code>&lt;a id=&quot;dateCalendar&quot; class=&quot;dateCalendar&quot; data-target=&quot;2020-11-18&quot;&gt;Data 1&lt;/a&gt;
  &lt;a id=&quot;dateCalendar&quot; class=&quot;dateCalendar&quot; data-target=&quot;2020-11-15&quot;&gt;Data 2&lt;/a&gt;
  </code></pre>
  <p>And, that value is replaced if I click on another label <code>a</code>, I want to obtain said value in a field <code>input</code></p>