EasyUI Forum
October 19, 2025, 04:39:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to get the date from the datebox field  (Read 13437 times)
Darrel
Jr. Member
**
Posts: 74


View Profile
« 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.
Logged
Darrel
Jr. Member
**
Posts: 74


View Profile
« Reply #1 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!