CMS Bitrix does not load script

214 views Asked by At

In console writes:

uncaught reference error.

Please tell me, where is error?

<script>
    $('select').selectric({
    maxHeight: 200
    });
    $.noConflict();
</script>
1

There are 1 answers

0
XOlegator On

I thik this code can avoid error:

<script>
    $.noConflict();
    $(function () {
        "use strict";

        if (typeof($.selectric) === "function") {
            $("select").selectric({
                maxHeight: 200
            });
        }
    });
</script>