+ 2

write a html and javascript program for age vaildation form the given date of birth to today date

write a html program for input taken form the user write a javascript program for age validation if age>=18 then print major otherwise alert enter correct DOB please send the the code

6th Nov 2017, 5:10 AM
Srinivasa Reddy
Srinivasa Reddy - avatar
2 Respuestas
+ 1
you can check the input before send it to php page in form attribute like <form action="actionpage.php" onsubmit="return a()"> and a() is function in javascript can return true to continue to action page or return false the code:: https://code.sololearn.com/W7j5P6WL8Uxr/?ref=app
7th Nov 2017, 1:35 PM
عبد المنعم محمد عبدة
عبد المنعم محمد عبدة - avatar
0
i want take date of birth date from the user
7th Nov 2017, 1:45 PM
Srinivasa Reddy
Srinivasa Reddy - avatar