Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

389
Views
Cómo usar variable de un div a otro ThymeLeaf con javascript

Quiero transferir una variable de div a otra, intente JavaScript ya que no puedo usar th: href porque no se activa porque la etiqueta tiene ejecución JS y no está abierto el enlace href. Necesito pasar la variable de alguna manera con java script

Tengo esta tabla. Necesito que se pase y.id como variable en la solicitud posterior en otro div

CÓDIGO HTML

 <tbody> <tr th:each="y : ${designationsList}"> <td th:text="${y.name}"></td> <td th:text="${y.department.name}"></td> <td class="text-right"> <div class="dropdown dropdown-action"> <a href="#" class="action-icon dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="material-icons">more_vert</i></a> <div class="dropdown-menu dropdown-menu-right" > <a class="dropdown-item btn" data-toggle="modal" data-target="#edit_designation"><i class="fa fa-pencil mr-5"></i> Edit</a> <!-- h:href="@{/designations/update/i.id" custom:linkMethod="post" --> <a class="dropdown-item" href="#" data-toggle="modal" data-target="#delete_designation"><i class="fa fa-trash-o mr-5"></i> Delete</a> <a > </a> </div> </div> </td> </tr>

Necesito pasarlo aquí

 <form th:action="@{/designations/update/{id}(id=${y.id})}" th:object="${designationToUpdate}" th:method="post">
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!