I have a basic SpringBoot app. using Spring Initializer, embedded Tomcat, Thymeleaf template engine, and package as an executable JAR file. I want to pass an attribute of a POJO to a javascript function:
<tr th:each="company: ${companies}" >
<td class="col_actions">
<a th:href="@{/company/edit/{id}(id=${company.id})}" style="color:#808080; margin-right: 10px;">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
</a>
<a href="#" style="color:#808080; text-align: center;" onclick="javascript:confirmDelete ({id}(id=${company.id}));">
<i class="fa fa-times" aria-hidden="true" ></i>
</a>
</td>
</tr>
But I got an error: Uncaught SyntaxError: missing ) after argument list