I\'ve started to work on Javascript recently. What I am testing is checking the DoB in valid format. Next step will be checking the age.
What my HTML code includes
var date=/^[0-9]{1,2}\-[0-9]{1,2}\-[0-9]{1,4}$/; if(!date.test(form.date.value)) alert("Enter correct date"); else alert(" working");