Replace jQuery code with its implementation
Hello!
I am not sure if this belongs to "Using jQuery" forum, because I basically want to use the jQuery's implementation (pure JavaScript core) instead of jQuery. So, I have this plugin (the full code is available
here ). In this plugin, I am using some jQuery code, because I don't know how I can get the same result with pure JavaScript, o your help will be appreciated.
- $(this._elem).click(function(e) {
- e.stopPropagation();
- $("[data-class=\"popup\"]").not(self._menu).hide();
- $(self._menu).toggle();
- }