Home > Article > Backend Development > How to implement the editing function of the curriculum?
According to different classes, fill in the corresponding class courses, but how to implement the editing function
According to different classes, fill in the corresponding class courses, but how to implement the editing function
Put an input tag in the editable area.
1. Consider how to trigger editing mode
2. Consider how to submit editing content
For example, if it seems more fun, bind an event to the corresponding editable place to display the input when clicked, and submit the data when the input loses focus
Let me give you a link: Use Jquery to turn text into a text box after clicking on it and it can be modified
Thanks for the invitation! In this case, you need to set up a corresponding text input box in the corresponding place where you edit the course. Click on the current question to display the corresponding text input box.