If you have the row index the easiest way to get the element is to add an id to it
var iptext='<label>First Name</label>'+'<input type="hidden" name="FirstName'+i+'" id="FirstName'+i+'" value="FirstName'+i+'">';
So if you have i = 5 you can get that element using
var LN=document.getElementById('LastName'+i).value;