EasyUI Forum
July 17, 2018, 08:10:48 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: [SOLVED]Datebox onClick show calendar?  (Read 128 times)
martinh
Newbie
*
Posts: 9


View Profile Email
« on: June 12, 2018, 03:51:00 AM »

Hi,

i need to stop users from entering a date manually into the datebox so wanted to show the calender when the user clicks on the datebox.

Can this be done?

Regards,

Mart
« Last Edit: June 14, 2018, 12:08:21 AM by martinh » Logged
jega
Jr. Member
**
Posts: 87


View Profile
« Reply #1 on: June 12, 2018, 11:08:37 AM »

Datebox extends from combobox. Use editable = false. (not tried)

$('#dd').datebox({
    editable:false
});


Logged
martinh
Newbie
*
Posts: 9


View Profile Email
« Reply #2 on: June 13, 2018, 12:14:11 AM »

Cheers jega, works like a charm.

I knew it would be something as simple as this that i overlooked (its been a long day of overthinking things).
Logged
jega
Jr. Member
**
Posts: 87


View Profile
« Reply #3 on: June 13, 2018, 02:26:01 PM »

That's why this forum exists, to help each other.

Remember to mark topic [SOLVED]. Helps other to quick find posts with solutions  Grin
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!