+ 1

Javascript function to verify a text is non editable

Can someone help me to create a function for the above one

13th May 2022, 12:39 PM
divya
divya - avatar
9 Respuestas
+ 1
What do you want verify about the text? Please explain with examples. Link your code.
13th May 2022, 12:47 PM
Lisa
Lisa - avatar
+ 1
If the button is in read-only mode? Or which element? Please link an example.
13th May 2022, 12:54 PM
Lisa
Lisa - avatar
+ 1
Yes, I understand what read-only is. My question was: Which element is supposed to be in read-only mode? The button itself or a different element. Where is the "text" that you were talking about? IT WOULD BE HELPFUL IF YOU LINKED YOUR CODE.
13th May 2022, 1:12 PM
Lisa
Lisa - avatar
+ 1
You get the element and check if element.readOnly == true. I assume you are using an input-button? Why do you need to check for read-only (there isn't anything editable from the users perspective?)
13th May 2022, 1:27 PM
Lisa
Lisa - avatar
0
If a button is greyed out we have to verify it is in read-only mode
13th May 2022, 12:49 PM
divya
divya - avatar
0
Read only mode
13th May 2022, 1:07 PM
divya
divya - avatar
0
Button itself
13th May 2022, 1:13 PM
divya
divya - avatar
0
For testing purpose
13th May 2022, 1:30 PM
divya
divya - avatar
0
Hello
15th May 2022, 5:15 AM
Shantanu Patil