Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript close calendar after select

$(document).ready(function () {
    $('#example1').datepicker({
        format: "dd/mm/yyyy",
        autoclose: true
    });

    //Alternativ way
    $('#example2').datepicker({
      format: "dd/mm/yyyy"
    }).on('change', function(){
        $('.datepicker').hide();
    });

});
Comment

javascript close calendar after select

<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>
Comment

PREVIOUS NEXT
Code Example
Javascript :: localstorage nextjs 
Javascript :: Javascript Map.prototype.size 
Javascript :: javascript Strict Mode in Variable 
Javascript :: react svg 
Javascript :: formidable node js 
Javascript :: how to fill html datalist with array values in javascript 
Javascript :: js execute function evry second 
Javascript :: JavaScript max 32-bit integer 
Javascript :: line break in javascript in notification 
Javascript :: Get position of each element using jquery 
Javascript :: Make a program that filters a list of strings and returns a list with only your friends name in it.javascript 
Javascript :: regular expression email 
Javascript :: js backwards loop 
Javascript :: node js mysql variables 
Javascript :: jest simulate toggle switch rn 
Javascript :: regex pattern to validate phone number in jitterbit 
Javascript :: nodejs express routing get 
Javascript :: render text in for loop react in function 
Javascript :: javascript xhr set parameters 
Javascript :: why .env file in node.js is not working to connect mongodb 
Javascript :: js set visibility 
Javascript :: react js class component 
Javascript :: split the string on any and all periods, question mark using regex 
Javascript :: how to add row in angular dynamically 
Javascript :: if else react render in jsc 
Javascript :: useQuery apollo more than one 
Javascript :: filtering in javascript 
Javascript :: add image inside a div on specific position javascript 
Javascript :: Loading react circular progress 
Javascript :: js set css 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =