Hi Shinju,

You can select the HTML elements by the name, id and by tag, you can try use any of these methods.
eg: document.getElementById("youe elementId").value!="" (or)...