Hi Guys
i have a formValidation Java Script on the form to validate username and password
text boxes to check whether they are empty,and i am calling them on the Onclient Click
even ton the button, But even If i enter some data into those text boxes the error message
alert appears, what it the problem with my code here ?
`<script type="text/javascript">
function FormValidator()
{
if (document.getElementById('txtusername').value == "");
{
alert('Invalid User Name');
}
if (document.getElementById('txtpassword').value == "");
{
alert('Invalid Password');
}
}
</script>
`
thanks
regards
sumith