Created
August 14, 2014 15:55
-
-
Save Tim-Machine/c90c4435caae53ce0ac9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add.on('click',function(){ | |
| elementID = "somerandom string"; | |
| var element ="<div>some html or template</div>"; | |
| element.on('search',function(){ | |
| var searchTerms = ''; | |
| socket.emit(elementId, searchTerms); | |
| }) | |
| element.on('elementID',function(data){ | |
| element.find('dropdown').addOption(data); | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment