Posts by Gabriel Sassi • 3 points
3 posts
-
0
votes1
answer181
viewsA: How to use a var counter in Thymeleaf?
I found the solution through javascript, I simply search all fields contain a certain class and define the element id attribute with each index. $('.campo').each(function(i) { $(this).attr('id',…
-
0
votes1
answer181
viewsQ: How to use a var counter in Thymeleaf?
Can I create a counter variable in Thymeleaf? I need an incremental variable to pass as a tag ID in HTML. I have the following loops, where each loop will be iterated x different times, so I can’t…
-
0
votes1
answer207
viewsQ: Create mask for text
I need to return a CNPJ value with a mask via Javascript to a text in a td tag of my html code. The value is returned from the standard CNPJ formatted bd as in the code below: <tr…