document.getElementByID返回一个具有传入字符串ID的DOM对象。$(cssseelector)返回一个jquery对象,该对象包含一组与css选择器匹配的dom对象,在您的情况下,是具有id firstname的dom对象。
如果要直接访问value属性,则需要通过集合中的第一个dom对象或jquery方法val进行访问。
// Use the jQuery val function
console.log ($("#FirstName").val());
// Or get the first element and look at the value property
console.log ($("#FirstName")[0].value);
console.log(document.getElementById('FirstName').value);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<input type="text" id="FirstName" class="TabInput" value="'. $ListRow[3] . '">