gfranko / jquery.selectBoxIt.js

A jQuery Select Box Plugin for Mobile, Tablet, and Desktop
http://www.selectboxit.com
MIT License
852 stars 301 forks source link

Can't set first option #348

Closed KinG-InFeT closed 8 years ago

KinG-InFeT commented 8 years ago

Hi,

probably duplicate #232 and #233 i have a same code but not work and out this error:

TypeError: selectBox.data(...) is undefined

my code is:

var selectBox = $("#slider_'+opzioni.id_sub_cat+' > select").selectBoxIt();
console.log(selectBox);
selectBox.data("selectBox-selectBoxIt").selectOption("none");

the console log out the object selectboxit, but the function .data() is exist into a jquery.min.js and not in jquery-ui.min.js.

my libs is:

jquery v1.11.3 jQuery UI - v1.10.4

my include file in main file

<script src="js/jquery.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/bootstrap-switch.js"></script>
        <script src="js/ios-orientationchange-fix.js"></script>
        <script src="js/kinetic-v5.1.0.js"></script>
        <script src="js/jquery-ui.min.js"></script>
        <script src="js/jquery.selectBoxIt.js"></script>        
        <script src="js/jquery.cycle.all.js"></script>

please help me because I have spent hours on this already...

@gfranko please

KinG-InFeT commented 8 years ago

resolved! sorry for open issue