I searched first but I found confusing answers since I\'m new to Thymeleaf and amateurish at best at javascript.
I just want to know how to pass variable expressions
This one worked:
th:onclick="'javascript:getContactId(\'' + ${contact.id} + '\');'"
Thanks goes out to the thymeleaf forum: http://forum.thymeleaf.org/variable-expression-into-javascript-without-using-th-inline-td4025534.html