diff --git a/templates/dispositivo/show.htm b/templates/dispositivo/show.htm index d58b4f8..41eeffc 100644 --- a/templates/dispositivo/show.htm +++ b/templates/dispositivo/show.htm @@ -28,8 +28,8 @@ window.onload = function () { {% for accesso in accessi %} adduser(); - $("#utente{{ loop.counter }} option").prop("selected", false); - $("#utente{{ loop.counter }} option[value={{ accesso.iid }}]").prop("selected", true); + $("#utente{{ loop.index }} option").prop("selected", false); + $("#utente{{ loop.index }} option[value={{ accesso.iid }}]").prop("selected", true); {% endfor %} }