I would like to use Thymeleaf in the JavaScript code in HTML.
The source code is as follows:
More specifically, "${i}" is specified in Thymeleaf, so
I would like to refer to the contents of the "i" variable as value.
<a href="javascript:document.f.page.th:value="${i}"; document.f.submit();">
Please give me some advice.
javascript java html spring
Somehow, I can understand how you feel, but I can't answer well because I don't understand the situation.Why don't you check the following areas?
form
element of? The correct answer may change depending on how you write the input
tag.:value
, is :
.?"${i}"
'${i}'
?"
causes attribute values to be truncated in the middle.
© 2024 OneMinuteCode. All rights reserved.