Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling manual input in dijit.form.DateTextBox

I want to only have the calendar to specify my textbox input, and not permit keyboard-punched numbers in my calendar textbox, inside dijit.form.DateTextBox. Is there any way to do that?

Thanks.

like image 488
Olivier Tremblay Avatar asked Jan 19 '26 09:01

Olivier Tremblay


1 Answers

The code below can be used to make DateTextBox read only:

<input data-dojo-type="dijit/form/DateTextBox" 
       data-dojo-id="effectiveDate" 
       type="text" 
       name="effectiveDate" 
       id="effectiveDate" 
       data-dojo-props="'readonly': 'readonly'"/>
like image 83
Chandra Prakash Avatar answered Jan 20 '26 22:01

Chandra Prakash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!