EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: martinh on June 12, 2018, 03:51:00 AM



Title: [SOLVED]Datebox onClick show calendar?
Post by: martinh 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


Title: Re: Datebox onClick show calendar?
Post by: jega on June 12, 2018, 11:08:37 AM
Datebox extends from combobox. Use editable = false. (not tried)

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




Title: Re: Datebox onClick show calendar?
Post by: martinh 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).


Title: Re: Datebox onClick show calendar?
Post by: jega 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  ;D