/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> // Remember to include: .../build/yahoo-dom-event/yahoo-dom-event.js YAHOO.example.init = function() { // Init stuff Here var myAutoComp = new YAHOO.widget.AutoComplete("myInput","myContainer", myDataSource); }; YAHOO.util.Event.onDOMReady(YAHOO.example.init); </script>