node.js - pass mongodb info to javascript function in html -
how can pass mongodb data twitter bootstrap typeahead?
this html file in have used typeahead.
<html> <head> <script type="text/javascript"> $(document).ready(function(){ $('input.typeahead').typeahead({ name: 'accounts', local: ['audi', 'bmw', 'bugatti', 'ferrari', 'ford', 'lamborghini', 'mercedes benz', 'porsche', 'rolls-royce', 'volkswagen'] }); }); </script> </head> </html>
my question:- in above function how can pass mongodb array above function?
Comments
Post a Comment