DEV Community

Simple edit-in-place by changing the type of an input

Christian Heilmann on August 08, 2019

Making something editable in place is often the best way to have people make changes. Nobody wants to have 3 steps where one is enough. Take this e...
Collapse
 
maxart2501 profile image
Massimo Artizzu

I've never thought about changing the type of an input element, except for password field (click the 👁️ eye button and you can see the password). Also it used to not work on older Internet Explorer but whatever...

But what about accessibility? Isn't this trick going to be confusing?

Collapse
 
jrop profile image
Jonathan Apodaca

Clever trick!