This is my code:
{%for obj in empaque %}
celdae = {{"obj.celda"}}
{%enfor%}
if (document.empaque.celda.value == celdae) {
alert("La celda ya esta ocupada") document.empaque.celda.focus() return false;}
What I want to do is go through the cycle and compare if the variable you type in the form is the same as one that already exists and if so, then the message will appear and allow me to change the cell number.
There is some way to do it.