title: How to call function from appended row and template literals
body: <p>I'm having problems with calling function.</p>
  <p>I have made function that loops through array and appends customer info in each row.
  I would like to have <code>onclick</code> to call another function and pass one parameter.</p>
  <pre><code>  aClanovi.forEach((oClan) =&gt; {
      $(&quot;#table_body&quot;).append(
        `&lt;tr&gt;&lt;td&gt;${oClan.Ime}&lt;/td&gt;&lt;td&gt;${oClan.Prezime}&lt;/td&gt;&lt;td&gt;${oClan.Sport}&lt;/td&gt;&lt;td&gt;${oClan.Uloga}&lt;/td&gt;&lt;td&gt;${oClan.UlogaKraj}&lt;/td&gt;&lt;td&gt;${oClan.Clanarina}&lt;/td&gt;&lt;td&gt;&lt;a href='#editMemberModal' class='edit' data-bs-toggle='modal'&gt;&lt;i class='material-icons' data-toggle='tooltip' title='Edit'&gt;&amp;#xE254;&lt;/i&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href='' id='ObrisiClana' onclick='obrisiClana(oClan.OIB)'&gt;&lt;i class='material-icons' title='Obrisi'&gt;&amp;#xe872;&lt;/i&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;`
      );
    });
  </code></pre>
  <pre><code>const obrisiClana = (OIB) =&gt; {
    console.log(OIB);
  };
  </code></pre>
  <p>Main problem is within this
  <code>&lt;a href='' id='ObrisiClana' onclick='obrisiClana(oClan.OIB)'&gt;&lt;i class='material-icons' title='Obrisi'&gt;&amp;#xe872;&lt;/i&gt;&lt;/a&gt;</code> and onclick.</p>
  <p>All customer info's are showing, but I get error whenever I try to press delete button.</p>
  <pre><code>Error: 
  Uncaught ReferenceError: obrisiClana is not defined
      onclick http://127.0.0.1:5500/index.html?:1```
  </code></pre>