Jump to content

Wazza

Circle Member
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Wazza

  1. Unfortunately I haven't worked it out yet. I didn't have any success with the code I posted above. Would love some help! 🙂
  2. I have business plan, so just after help with what javascript code to use. The intended result is to have the html type for the form field be date, so that web browsers can allow the date picker for data input. (See attached screenshot showing how this would look!) +++ The idea was inspired by zoxoxu's post on the following thread. But the code I haven't been able to get working. Here is what I have tried injecting into the header of the page: <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script> <script> $( document ).ready(function() { $('#text-yui_3_17_2_1_1541027265450_300449-field').attr("type", "date"); }); </script>
  3. On the contact form on this page, I am wanting to change the html type of the 'date' field. Here is the desired change: Original: <input class="field-element text" type="text" id="text-yui_3_17_2_1_1541027265450_300449-field"> Desired: <input class="field-element text" type="date" id="text-yui_3_17_2_1_1541027265450_300449-field"> Could someone help me know what custom html to inject into the page's header?
×
×
  • 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.