Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2009 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/174729 to your computer and use it in GitHub Desktop.
Save anonymous/174729 to your computer and use it in GitHub Desktop.
document.observeSelect = function(){
$$('select.get').invoke('stopObserving', 'change');
$$('select.get').invoke('observe', 'change', function(event){
var e = event.element();
if(e.isActive()){
e.indicate();
document.ajaxRequest(e, e.readAttribute('src'), 'get', event, e.serialize());
};
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment