This is a very basic question. I don't know how to get the post data from the jquery multidatespicker. When I submit the page I want to echo back the post variables but I don't see how they're sent with jquery.
Documentation: http://multidatespickr.sourceforge.net/ Documentation for regular datepicker: http://jqueryui.com/datepicker/ If the picked dates get submitted, and processed whereever you're sending them, you should get them sent back to you. Since you haven't posted any actual code, there's no way in telling why it's not working for you
Yes... but how do you trigger the datepicker, how do you collect the POST-data, how do you structure the form... Post some code, man.
$( "#submit_mdp" ).submit(function( event ) { $.ajax({ url: 'http://beta.opentemp.local/user/dashboard', data: $("form#submit_mdp").serialize(), type: 'POST', 'beforeSend': function(xhr, settings) { console.log('ABOUT TO SEND'); }, 'success': function(result, status_code, xhr) { console.log('SUCCESS!'); }, 'complete': function(xhr, text_status) { console.log('Done.'); }, 'error': function (XMLHttpRequest, textStatus, errorThrown) { alert("Error with ajax Function: "+ textStatus+" "+errorThrown); } }); }); Code (markup):
var arr=[]; $('#simpliest-usage').multiDatesPicker({onSelect: function(date,e) { var found = jQuery.inArray(date, arr); if (found >= 0) { // Element was found, remove it. arr.splice(found, 1); } else { // Element was not found, add it. arr.push(date); } alert(arr); }}); Code (markup):