$(document).ready(function () {
$('#example1').datepicker({
format: "dd/mm/yyyy",
autoclose: true
});
//Alternativ way
$('#example2').datepicker({
format: "dd/mm/yyyy"
}).on('change', function(){
$('.datepicker').hide();
});
});
<div class="container">
<div class="hero-unit">
<input type="text" placeholder="Sample 1: Click to show datepicker" id="example1">
</div>
<div class="hero-unit">
<input type="text" placeholder="Sample 2: Click to show datepicker" id="example2">
</div>
</div>
Code Example |
---|
:: |
Javascript :: |
:: angular javascript |
:: formidable node js |
:: |
:: javascript link to google maps route |
:: |
Javascript :: javascript sig figs |
Javascript :: |
:: nodejs get prosses id |
:: express routers |
Javascript :: |
Javascript :: fake delay in fetch |
Javascript :: instagram unfollow console code |
Javascript :: comparare due array di numeri javascript |
Javascript :: ipcrenderer preload.js |
Javascript :: reactjs npm take photo |
Javascript :: private methods js |
Javascript :: hardhat async test |
:: |
Javascript :: rendering an array inside an array in react |
Javascript :: javascript find prototype |
Javascript :: coderbyte find intersection solutions |
Javascript :: reactnaviataion change title |
Javascript :: change array range value javascript |
Javascript :: hot get access_token instead of url |
Javascript :: |
Javascript :: |
:: |
:: |