age validation jquery
var day = 12;
var month = 12;
var year = 2006;
var age = 18;
var setDate = new Date(year + age, month - 1, day);
var currdate = new Date();
if (currdate >= setDate) {
// you are above 18
alert("above 18");
} else {
alert("below 18");
}
Also in JavaScript:
- chart.js line chart
- 'App' is not defined react/jsx-no-undef
- do you need a semicolon in javascript
- kotlin jsonobject from string
- jquery check if all checkbox is not checked
- implement the remove property function
- javascript how to dynamically add asp button
- postmark with nodejs
- jspdf preview before download
- sticky operations in javascript
- laravel fetch post
- change the position of div using javascript
- javascript subtract years from date
- js innerHTML
- how to set time out in js
- settimeout node js
- format number thousands k javascript
- ionic status bar color
- scrollto angular
- adding a prototype on vue using nuxt
- get data from api in javascript
- get mouse position javascript
- javascript create array of objects from multiple arrays
- react native flexbox 2 columns 1 fixed width