Many time we find javascript error that theĀ elementĀ is found or not initialized in the form.

<script type="text/javascript">
 
for (i=1;i<=document.FORMNAME.elements.length;i++)
{
alert(document.FORMNAME.elements[i].name);
}
</script>

Use the above function by replacing with your formname . It will alert all the detected ID inside the form element. This helps us to troubleshoot the scope of elements in the form