jQuery UI Widgets › Forums › General Discussions › Editors › DateTimeInput › Readonly attribute doesn't work
This topic contains 6 replies, has 4 voices, and was last updated by Hristo 6 years, 10 months ago.
-
Author
-
Hi, The readonly flag in the datetimeinput doesn’t work – No matter it is false or true you can change the date.
Is it possible to get it to work somehow?
Hello mixcoder,
I tested the same example and it seems to work fine.
Could you try it again or if it does not look like you expect to give us more details?Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comWhen You look at the fiddle example of jqxDateTimeInput.readonly it shows, that it doesn’t work!
http://jsfiddle.net/jqwidgets/yv5gR/Firefox 54.0.1 (64-Bit)
http://jsfiddle.net/jqwidgets/yv5gR/ (hopefully not only temporarily generated…)
Thanks!
It is readonly but can be changed with selecting date by date selector popup.
Maybe this is intendet.
So, how can this control be set to not changeable and clear content (at the moment only 01.01.1900 is possible to set).
Thanks a lot in advance!
Hello Hans,
If you do not want to be able to change and clear the content of the jqxDateTimeInput you could set
disabled: true.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comdisabled: trueis fine, but needs modifying CSS. What HTMLreadonlyproperty was invented for, was to prevent input only, without affecting neither ability to use in form posts nor the styling (the former purpose doesn’t matter here as JQWidgets disabled fields can be also easily read). So the look is an issue.Your implementation does something else (what exactly, is a good question) making it hardly useful.
Hello wuuemm,
Could you clarify your issue?
Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.