The expected effect is as follows:

The final code structure is as follows:


As follows:
In older versions, if the html parameter of content was of the HTMLElement type, clicking the cancel button would automatically restore the content to its original calling position. However, in V6, after clicking the cancel button, the original position of the content is unexpectedly empty. The DOM is removed, causing the value retrieved the second time to be empty. The final solution is:
cancel: function () {
$(“.mem-change-password”).append(elem_change);
}
After canceling, this function executes and re-inserts the DOM structure into its original position, ensuring that a value exists when referenced again!
