I have an input type hidden in a loop, so it's a multidimensional array and it has one input name.
How can I check if there is any value in it? Like any value or element?
This is the code: (the array is generated in php in a loop)
echo "<td class='$border'>
<div class='DropZonePers'></div>
<input type='hidden' value='' name='pers[$dag][$j]'/>
</td>";
What I have tried in js:
if($(".pers").length !> 0) {
alert("No!");
return false;
}
How can I do that?