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.
i have two fields username and password in a html form.I have done the following validations.
1)if username is null,then display alert message for username.
2)if password is null,then display alert message for password.
The both validations are working fine.When the username is not null and password is null and when i submit the form,the alert message is displaying for password,but the value entered for username is getting clear off.what i have to do to get the value of username i have entered while submitting the form.