Object doesn't support property or method 'selectbox'

前端 未结 1 1117
逝去的感伤
逝去的感伤 2021-01-21 12:53

I\'m using the selectbox jQuery plugin from http://www.bulgaria-web-developers.com/projects/javascript/selectbox/ .

I also have a linked in js file, which contains the

相关标签:
1条回答
  • 2021-01-21 13:23

    Aha, the problem was a conflict between jQuery's selectbox plugin (probably jQuery itself) and Foundation 4. When I integrated Foundation 4, I followed the example on their site which had me copy and paste in this cryptic bit:

    <script>
        document.write('<script src=' +
        ('__proto__' in {} ? '/js/vendor/zepto' : '/js/vendor/jquery') +
        '.js><\/script>');
    </script>
    

    This was loading zepto or jquery, and THEN I was loading jquery from the Google CDN. Removing this line and placing my Google CDN of jQuery first resolved the conflict.

    0 讨论(0)
提交回复
热议问题