- $.plugin_name(variable)
- $(selector).plugin_name(variable)
Мой вопрос: как мне указать внутри плагина это:
if (selector is not given) {
create an element
} else {
( for example) insert variable in elements matching the selector
}
Подробнее здесь: https://stackoverflow.com/questions/212 ... ollections
Мобильная версия