Is there any way to tell jQuery to do something only once? E.g. right now, I need jQuery to on click of div, append some HTML. Then, every time someone clicks that div again it toggles hide/show. Is there a way to do this? I’m trying not to be too confusing.
EDIT: Solved!
Use the
onemethod.For example: