How to change shortcut in textbox using jQuery

I have some shortcuts that I want to allow users to edit. Is it possible to do this, and if so, how (using jQuery).

When a user clicks a shortcut, it turns into a text field that contains the existing shortcut text. When the user then edits the label and clicks somewhere other than the text field, the value is saved.

Actually it can be several functionalities in one, if you could help, it would be very useful.

+3
source share
2 answers

What you describe is often referred to as a "place editor." You should check out the Jeditable plugin demo page . I think this is exactly what you are looking for.

+8
source

I would suggest exploring some "edit in place" plugins .

Watch a live demo .

+2
source

Source: https://habr.com/ru/post/1721662/


All Articles