0

I'm using Magento 2.2.5. How to add the Datepicker in frontend(product view page).

0

You can do this by js.

<script>
    require([
        "jquery",
        "mage/calendar"
    ], function ($) {

    $("#ElementId").calendar({
         buttonText: "<?php echo __('Select Date') ?>"
    });

    });
</script>
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.