javascript - How to get current date from kendoDatePicker not in the 'change' handler -


those approaches don't work:

dateselectedfrom = $("#datepickerfrom").value - undefined dateselectedfrom = $("#datepickerfrom").value() - object has no method value() 

i know can use this.value() , works fine, method ondateselectedfromcalendar used different datetimepicker control (i have several on page)

<input id="datepickerfrom" value="10/10/2011" />     $("#datepickerfrom").kendodatepicker({             change: ondateselectedfromcalendar         });     function ondateselectedfromcalendar(e) {         dateselectedfrom = $("#datepickerfrom").value;     } 

documentation doesn't specify other options http://docs.telerik.com/kendo-ui/api/web/datepicker

with kendo object have use data like:

var d = $("#datepickerfrom").data("kendodatetimepicker").value(); 

see documentation here.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -