Java Script: Uncaught TypeError: Cannot read property 'value' of undefined
<p>I am sorry if I this questions is duplication, I have read all the Q &amp; A in the site regarding but did not find the answer.</p>

<p>I am getting the error message <code>Uncaught TypeError: Cannot read property 'value' of undefined</code>. The funny thing is this is coming for only 1 client.
I have created a place where we can enter arrival and departure information of client but once when we are adding the one client it is coming for others it is working fine.
I have checked in all the computers in my office but still I can not add Mr. XYZ to arrival list.</p>

<p>This is the line</p>

<pre><code>var fldQPRArrivalFlightID=document.getElementsByName('fldQPRArrivalFlightID['+fldCustomerReservationID+']['+mycount+']')[0].value;
</code></pre>
