Split the date AnyPicker.js

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Split the date AnyPicker.js



When I click .btn it will get value 08 2018. How can I split the value into input.day and input.month when I click the .btn?


.btn


08 2018


input.day


input.month


.btn


$(".btn").AnyPicker(
mode: "datetime",
dateTimeFormat: "MM YYYY",
maxValue: "12 2100",
minValue: "01 2018",
);


<input class="btn">
<input type="text" id="" placeholder="DD" class="day"> //date here
<input type="text" id="" placeholder="YYYY" class="year"> //year here





You have formatted the plugin to use month and year dateTimeFormat: "MM YYYY" therefore there is no day
– Darren Sweeney
Aug 10 at 9:54


dateTimeFormat: "MM YYYY"





hi I just change my code, it only need to show month and year
– Tani Huang
Aug 10 at 10:07









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

React Native Navigation and navigating to another Screen problem