Jump to content

Date formate on Booking Form

Recommended Posts

  • Replies 1
  • Views 322
  • Created
  • Last Reply

You can add the javascript code below to the page using Per Page Code Injection

Javascript

(function(){
  if (document.readyState == 'loading') {
    document.addEventListener('DOMContentLoaded', init);
  } else {
    init();
  }
  function init() {
    var dayField = document.querySelector('.date .day');
    dayField.parentNode.insertBefore(dayField, dayField.previousElementSibling);
  }
})();

Make sure you add the code between <script> tags, e.g.

<script>
  // JS code goes here
</script>

 

Full stack developer who loves helping people out with anything web related. If you'd like to support me, buy me a coffee!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.