I have a div, and I used html() to change its content. I am doing a “cancel” button, and I would like to html() back to the original value.
Is there an efficient way to do this? I’m trying to avoid to html() the whole code again, as it doesn’t look very good and is probably not the best practice.
Thanks a lot in advance. Regards
1 Answer