I have a form where I am trying to validate few text boxes using javascript. It is not working as it is inteded to and I am unable to understand the reason.can someboady please let me know what is the error with my code.
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script>
function Check() {
alert("checking");
// GPA and highest GPA in the class
var Valgpa = document.getElementById("<%=gpa.ClientID%>").value;
var Valclassgpa = document.getElementById("<%=classgpa.ClientID%>").value;
if ((Valgpa != '') && (Valclassgpa == '')) {
// alert("1");
if (parseFloat(Valgpa)) {
// alert("2");
...
Go to the complete details ...