Quote:
var gg=document.getElementById('loveuser');
if (!isNaN(gg)) {
Your
gg
variable contains the HTML element itself,
not the value of that element.
An HTML element is not a number, so your code will always display "Empty".
Change your code to test the value of the element instead.
var gg = document.getElementById('loveuser').value;