Copy link to clipboard
Copied
I have text fields set to input the time when it is clicked.
Is there a way to make the text field read only after the time is in.
event.value = util.printd('hh:MM', new Date());
current code to insert time when text field is clicked
Thanks
R
Copy link to clipboard
Copied
sorry this is the code
event.target.value = util.printd('hh:MM', new Date());
Copy link to clipboard
Copied
Add this to the end of the code:
event.target.readonly = true;