Answer the question
In order to leave comments, you need to log in
How to make the option of the select hidden (collapse) when clicking on any space of the body, and not just on the select?
Greetings!
How in this plugin: formstone.it/components/dropdown to make the select itself close the option when clicking on any space of the body, not just the select?
Sources: https://yadi.sk/d/ubeRkxpLk9tvS
PS: I'm just starting to learn javascript, but I would like to know. If select was closed in this plugin, I wouldn't ask.
Answer the question
In order to leave comments, you need to log in
You can look at the source.
Formstone.$body = $("body");
$Body.on(Events.click + data.dotGuid, ":not(" + Classes.options + ")", data, closeOptionsHelper);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question