i am trying to doing input validation its my complete code but it is not working well.
<html>
<head>
<title>Testing Validation</title>
<script type = "text/javascript">
function getvalue()
{
value = document.getElementById('myId').value;
if(value < 'a' || value > 'z' || value != '@' && value != '.')
{
alert("Not a valid E-mail adress");
}
}
</script>
</head>
<body>
<form name = "frm">
<input type="text" name="input" size="40" id="myId" />
<input type = "submit" name = "submit" onclick="getvalue()" />
</form>
</body>
</html>