Quantcast
Channel: how to pass a value using thymeleaf to data of bootstrap? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

how to pass a value using thymeleaf to data of bootstrap?

$
0
0

I want to use Thymeleaf to pass a value to data from Bootstrap.

I don't know how to do it. Can you help me?

<tr th:each="car : ${lCars}" class="succes"><td th:text="${car.id}"></td><td th:text="${car.name}"></td><td align="center"><button type="button" class="btn btn-primary"      data-toggle="modal" data-target="#editar" title="Edit"      data-id= "th:text="${car.id}""<!-- I want to pass this value on to the data, but this way doesn't work -->      data-name="myCar"<!-- If I send a simple word, works well --><span class="glyphicon glyphicon-pencil"></span> Edit</button></td></tr>

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images