jquery 3.1.0 and jquery-ui autocomplete are not compatible, what's the workaround? -


i having trouble getting jquery 3.1.0 work jquery ui's autocomplete feature.

the workaround know replacing jquery 3.1.0 1 prepackaged jquery ui installer. unfortunately, wouldn't work me version in installer package of jquery ui doesn't allow me use tags-input , other modern features require website.

<input type="email" id="tags" class="form-control" placeholder="any criteria" data-role="tagsinput">  <script type="text/javascript" src="external/jquery/js/jquery-3.1.0.min.js"></script> <script type="text/javascript" src="external/jquery-ui/js/jquery-ui.min.js"></script>   <script>       $( function() {         var availabletags = [           "actionscript",           "applescript",           "asp",           "basic",           "c",           "c++",           "clojure",           "cobol",           "coldfusion",           "erlang",           "fortran",           "groovy",           "haskell",           "java",           "javascript",           "lisp",           "perl",           "php",           "python",           "ruby",           "scala",           "scheme"         ];         $( "#tags" ).autocomplete({           source: availabletags         });       } ); 

seems working fine now:

https://jsfiddle.net/jphellemons/0ukbtgs4/

  • jquery 3.1.1
  • jquery ui 1.12.1

with code:

<input type="email" id="tags" placeholder="any criteria"> <script type="text/javascript" src="external/jquery/js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="external/jquery-ui/js/jquery-ui-1.12.1.min.js"></script> <script>   $(function() {     var availabletags = ["actionscript", "applescript", "asp", "basic", "c", "c++", "clojure",        "cobol", "coldfusion", "erlang", "fortran", "groovy", "haskell", "java", "javascript",       "lisp", "perl", "php", "python", "ruby", "scala", "scheme"     ];     $("#tags").autocomplete({       source: availabletags     });   }); </script> 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -