EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Darrel on December 03, 2015, 12:52:22 AM



Title: How to get the date from the datebox field
Post by: Darrel on December 03, 2015, 12:52:22 AM
Hello,

Please could anyone tell me how to get dateBox value.

if i try the following codes then all of them are returning empty strings:

Code:
   alert($('#dtDateBox').val());
   alert($('#dtDateBox').text());
   alert(document.getElementById('dtDateBox').value);

I've initialized the dateBox as follows:

Code:
     <INPUT type="text" id="dtDateBox" name="dtDateBox" class="easyui-datebox" style="width:150px"/>

Please could anybody tell me how to get only the text of the datebox which the user chose.

Thanks in advance.

Regards,
Darrel Viegas.


Title: Re: How to get the date from the datebox field
Post by: Darrel on December 03, 2015, 12:55:37 AM
Hello,

Finally got a method that did what i required,

$('#dtDateBox').datebox('getValue');

Thanks...


Regards,
Darrel Viegas