Last active
April 24, 2023 23:29
-
-
Save noahub/7a86e0f65c615e0bba96 to your computer and use it in GitHub Desktop.
Create a datepicker field in Unbounce and set its default value to today's date.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//a.unbounce.com/s/javascripts/jquery/jquery-ui.1.8.16.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
var currentDate = new Date(); | |
$( "#your_date_field" ).datepicker(); | |
$( "#your_date_field" ).datepicker("setDate", currentDate); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment