php - Jquery UI Multi datepicker issue on retrieving dates -


i using http://multidatespickr.sourceforge.net/#method-adddates enable multiple date select. works fine wondering how selected dates php.

below html code.

<input type="text" name="outgoing_call_dates" value="" id="outgoing_call_dates_id" class="hasdatepicker"> 

as can see value tag empty when add, appending end not value tag doing same. please check image.

original source : http://multidatespickr.sourceforge.net/#method-adddates (example : input)

please me find wayenter image description here

html

<input id="datepick" type="text"/>  <input id="get" type="button" value="get" /> 

js

$('#datepick').multidatespicker();  $('#get').on("click",function(){     var dates = $('#datepick').val();         if(dates !=''){         datastring = 'dates='+dates;         $.ajax({                  type:"post",                  url : "url_to_php_file",                  data : datastring,                  datatype : 'json',                  success : function(data) {                     alert(data);                }         )};       } }); 

php

$dates = ($_post['dates']);  echo json_encode($dates); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -