Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Created September 22, 2009 12:55
Show Gist options
  • Save rlivsey/191042 to your computer and use it in GitHub Desktop.
Save rlivsey/191042 to your computer and use it in GitHub Desktop.
document.observe('dom:loaded', function(){
$$('select.changer').each(function(select){
select.observe('change', function(){
new Ajax.Updater('other_div', '/some/action', {
parameters: {selected: $F(select)}
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment