Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2009 14:50
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