html set input type date to disable previous dates
$(function(){
var dtToday = new Date();
var month = dtToday.getMonth() + 1;
var day = dtToday.getDate();
var year = dtToday.getFullYear();
if(month < 10)
month = '0' + month.toString();
if(day < 10)
day = '0' + day.toString();
var maxDate = year + '-' + month + '-' + day;
alert(maxDate);
$('#txtDate').attr('min', maxDate);
});
Also in HTML:
- how to add border to a text in html with javascript
- angular property binding
- jquery replace html
- how to make a html login
- vmware 12 linux
- radio buttons html
- how to make a textbox in html
- textarea bootstrap
- php remove html tags
- how to add a background image in html
- html hyperlink with question mark in a form action
- excel number format hide values cheat sheet
- about ul and li tag
- html send email
- how to align text beside image in html
- html to pdf react
- excel vba HTML text with tags to formatted text in an cell
- html video autoplay IPHONE
- input types html
- center header html
- modal lightning salesforce
- html website
- what is a fieldset html
- html submit button