how to set the textbox of html readonly to true using python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to set the textbox of html readonly to true using python?

8th Jul 2016, 4:32 AM
swapnil Singh
swapnil Singh - avatar
8 Answers
0
First tell me what html is.
8th Jul 2016, 4:39 AM
sophie
sophie - avatar
0
html5
8th Jul 2016, 4:42 AM
swapnil Singh
swapnil Singh - avatar
0
so what's the difference
8th Jul 2016, 4:45 AM
sophie
sophie - avatar
0
forget it .its not for you.
8th Jul 2016, 4:46 AM
swapnil Singh
swapnil Singh - avatar
0
Use the read only attribute for the input box. Before the closing '>', type readonly. E.g <input type ="text" name="Name" value="this is read-only" readonly>
8th Jul 2016, 5:22 AM
Gershon Fosu
Gershon Fosu - avatar
0
whats the syntax to do it dynamically..means if i check the checkbox then fields will be editable and if i uncheck it it becomes readonly...
8th Jul 2016, 10:49 AM
swapnil Singh
swapnil Singh - avatar
0
gershon can u give ur email id so i can clearly mention my problem and can send u some screen shots
8th Jul 2016, 10:50 AM
swapnil Singh
swapnil Singh - avatar
8th Jul 2016, 11:32 AM
Gershon Fosu
Gershon Fosu - avatar