
How to check text in textbox using JavaScript
I have a form in HTML that contains text feilds and a submit button. The main purpose of this form is to take input from user. My qestion is that is it possible to check text feilds for text or null value. I want the HTML form to be accepted when if has values for all textfeild.
Please guide me.

JavaScript validation example to check text in textfeild
<script language="javascript">
function validateForm()
{
var a=document.forms["RForm"]["Lname"].value;
if (a==null || a=="")
{
alert("please Enter Login Name ");
return false;
}
var b=document.forms["RForm"]["Pass"].value;
if (b==null || b=="")
{
alert("please Enter password");
return false;
}
</script>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.