Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to click on the datepicker date in jquery

$("#myDatePicker").datepicker({
    // The hidden field to receive the date
    altField: "#dateHidden",
    // The format you want
    altFormat: "yy-mm-dd",
    // The format the user actually sees
    dateFormat: "dd/mm/yy",
    onSelect: function (date) {
        // Your CSS changes, just in case you still need them
        $('a.ui-state-default').removeClass('ui-state-highlight');
        $(this).addClass('ui-state-highlight');
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: js string reverse exception 
Javascript :: react join array of components 
Javascript :: mdn foreach 
Javascript :: array push method 
Javascript :: how to get the data from url in javascript 
Javascript :: active js 
Javascript :: get object with max value javascript 
Javascript :: js fetch get params 
Javascript :: how to replace strings with react components 
Javascript :: upload files to express using express-fileupload 
Javascript :: force delete in sequelize 
Javascript :: shadow react native 
Javascript :: wordpress javascript localization 
Javascript :: async constructor javascript 
Javascript :: javascript 1 line if 
Javascript :: how to read xml element in xml2js 
Javascript :: button not exist js 
Javascript :: maths 
Javascript :: delete node module 
Javascript :: quotation marks javascript 
Javascript :: how to search for a voice channel within a guild using discord.js 
Javascript :: localstorage set 
Javascript :: find and filter 
Javascript :: javascript set variable if not defined 
Javascript :: Round to at most 2 decimal places 
Javascript :: settimeout function es6 
Javascript :: moment js between two dates 
Javascript :: useeffect only on mount 
Javascript :: disable javascript chrome 
Javascript :: js click counter 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =