This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
this code have a serious problem.. its designed to validate dates.. but even when a validate date is entered .. the helptext is not cleared..
the second problem is .. the chrome's interpreter is saying that my regular expression for validating email is out of range.. i checked the regular expression from a diffent file which is working .. both expressions are same.. but it alarming only on my html file..
deepak bhai wrote:this code have a serious problem.. its designed to validate dates.. but even when a validate date is entered .. the helptext is not cleared..
That's true; your other validations have code which says "helpText.innerHTML = something" and your date validation doesn't have that.
Joined: Apr 22, 2011
my date validation code is not validating the date itself, its just sending it to validateRegEx function with the helpmessage. where if the date is invalid then the helptext.innerHTML value will be set as helpmessage. other wise it will cleared. my other codes are setting helptext.innerHTML in them because they are not sending there control to validateRegEx function except the email validation..