0

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

1 Answer 1

0

You can do this by js.

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

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

    });
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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