Skip to content

Instantly share code, notes, and snippets.

@advorak
Last active December 18, 2015 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save advorak/5815924 to your computer and use it in GitHub Desktop.
Save advorak/5815924 to your computer and use it in GitHub Desktop.
// how can I chain these two 'on' functions? I'm not sure this is working correctly ...
$('input#hospital_name, input#address').on "autocompleteselect", (e,ui) ->
alert 'selected'
.on "autocompletechange" (e,ui)->
alert 'changed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment