jquery - js plugin from different source not working -
i using jquery's,can plugin different source work? if include both plugin 1 of them not working,how can make both of them work
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="dropdown-check-list.1.9/js/ui.dropdownchecklist-1.4-min.js"></script> <script type="text/javascript" src= "dropdown-check-list.1.9/src/jquery-1.6.1.min.js"></script> <script type="text/javascript" src= "dropdown-check-list.1.9/src/jquery-ui-1.8.13.custom.min.js"></script> <script type="text/javascript" src="dropdown-check-list.1.9/src/ui.dropdownchecklist.js"></script>
you can assign different jquery distro's different global variables. 1 can house in $
variable.
<script src="dropdown-check-list.1.9/src/jquery-1.6.1.min.js"></script> <script> var jq161 = window.jquery; </script> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script> var $ = window.jquery; // not needed per se </script>
an alternative use this; http://api.jquery.com/jquery.noconflict/
Comments
Post a Comment