close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Inline Datepicker - cannot pass value

Thread began 3/24/2020 6:57 am by georgina_barrett_187762 | Last modified 3/25/2020 10:34 am by georgina_barrett_187762 | 138 views | 6 replies


Inline Datepicker - cannot pass value

I have set up a datepicker and then embedded it in the page instead of as a popup - using the tutorial here

However I need to pass the value of the datepicker to the following page. I have searched the internet and see that if you add a hidden field inside the div that holds the datepicker and then use $('#datetimepicker').on('dp.change', function(event) { alert(; }); I should be able to do it but it just wont pass the value. Everything else works.

Here is the code..
<form method="get" enctype="multipart/form-data" id="dateform" action="....">
<div class="col-12 pb-2" id="datepicker_1">
<label for="StartDate">Select Your Holiday Date</label>
<input type="hidden" name="date" id="my_hidden_input" value="">

<script src="//"></script>
<script src="//"></script>
<script src="" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script type="text/javascript">
dateFormat: 'yy-mm-dd',
showAnim: 'show',
minDate: '+0',
maxDate: '+2Y',
numberOfMonths: [1, 2],
onClose: closeDatePicker_datepicker_1
$('#datepicker_1').on('dp.change', function(event) {
//console.log(moment('MM/DD/YYYY h:mm a'));
//console.log('MM/DD/YYYY h:mm a'));
var formatted_date ='MM/DD/YYYY h:mm a');
function closeDatePicker_datepicker_1() {
var tElm = $('#datepicker_1');
if (typeof datepicker_1_Spry != null && typeof datepicker_1_Spry != "undefined" && StartDate_Spry.validate) {

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...