Passing sightly property or variable inside js function
I am trying to pass slightly property - ${tabs.id} to openSection() as shown below.
<button class="tablinks" onclick="openSection(event, ${tabs.id}-section)">${tabs.tabname}</button>But I see - onclick="openSection(event, -section)" in html when component is rendered.
whereas below expression works.
<div id="${tabs.id}-section" class="section">html output:
<div id="first-section" class="section">
How can pass this property to openSection() to make this work?