In the html page take an input box for entering the date of birth and the select option for selecting the gender. And write a script for displaying these values.
For detail tutorial please go through the link
may this will be helpful for you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.