How To Make A Span Tag That Work Same like Input Tag In 2020

How does it work?

All you have to do is set the contenteditable attribute on nearly any HTML element to make it editable. Here’s a simple example that creates a <div> element whose contents the user can edit.

<span contenteditable="true">
  This text can be edited by the user.
</span >

Live Example

Leave a Reply

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages