Имя: Пароль:
IT
Веб-мастеринг
Ошибка в скрипте
0 Happynattion
 
16.01.19
14:24
main.js:407 Uncaught TypeError: Placeholders.init is not a function
    at complete (main.js:407)
    at j (modernizr.js:4)
    at modernizr.js:4
    at h (modernizr.js:4)
    at HTMLScriptElement.k.onreadystatechange.k.onload [as onreadystatechange] (modernizr.js:4)


Код скрипта:BRUSHED.slider();

$(document).ready(function(){
    Modernizr.load([
    {
        test: Modernizr.placeholder,
        nope: 'templates/brushed/js/placeholder.js',
        complete : function() {
                if (!Modernizr.placeholder) {
                        Placeholders.init({
                        live: true,
                        hideOnFocus: false,
                        className: "1",
                        textColor: "#999"
                        });    
                }
        }
    }
    ]);
Что не так в сстрочке Placeholder.init?
1 sandal_r
 
16.01.19
14:28
2 Happynattion
 
16.01.19
14:36
(1) не совсем пойму что нужно сделать?
3 webdev
 
16.01.19
15:03
(2) Удали строки:
Placeholders.init({
                        live: true,
                        hideOnFocus: false,
                        className: "1",
                        textColor: "#999"
                        });