Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created March 22, 2011 05:11
Show Gist options
  • Save fmpwizard/880813 to your computer and use it in GitHub Desktop.
Save fmpwizard/880813 to your computer and use it in GitHub Desktop.
def stateDropDown = SHtml.ajaxSelect(
Wiring.states.map(i => (i, i)),
Full(1.toString),
selected => {
//What to do when you select an entry
replace(selected)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment