twitter bootstrap - how to get search suggestions for foundations framework webapp? -


how search suggestions foundations framework webapp ? if bootstrap have used typeahead, etc foundations framework website , including bootstrap js , css causing conflict foundations css , js.

how can search suggestions (similar typeahead bootstrap) foundations website

according article, auto-complete search can implemented in zurb foundation using jquery this:

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

html:

<div class="row">   <div class="large-12 columns ui-widget">   <label for="tags">input label</label>   <input id="tags" type="text" placeholder="large-12.columns">   </div> </div> 

js:

<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> 

also, please remember proto.js , jquery.js fallback script absolutely key. foundation.min.js contains jquery library itself.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -