Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function observeSelect(reg){
  2.   $$(reg+' select.get').each(function(element){
  3.     // prüft, ob es evtl. schon observed wurde.... (muss aber nicht)
  4.     if(!element.observingChange){
  5.       element.observe('change', function(event){
  6.          el = event.element();
  7.      // do something
  8.       });
  9.       element.observingChange = true;
  10.     };
  11.   });
  12. }
  13.  
  14. document.observe("dom:loaded", function(){
  15.   observeSelect('#filter')  // observed alle filter selects
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top