As the other user said, you can get the value using the
document.getElementByID
method.
(Similarly getElementByTagName method can also be used. But that will return all the specified tags.)
In your case, you need to surround the text inside a
span
(or even div). Give it an id and use the above methods.
Something like:
<span id="spnFirstName">FirstName</span>