mootools - addEvent doesn't work with chrome 25 and OSX -


i've problem chrome 25 , osx.

i results line

console.log($$('.sort-box-slt-pl-opt')); 

but lines

$$('.sort-box-slt-pl-opt').addevent('click', function(event){     console.log('test'); }); 

the code inside addevent handler never reached.

did have same problem ?

i'm working mootools 1.4, same problem happen when try use document.getelementsbyclassname

thanks.


thank comment still have same trouble. html structure:

<span id="ead-sort-box-select-bloc">     <select id="ead-sort-box-select" class="divid-slt___cdc_" name="sort-box-ead">         <option class="sort-box-slt-pl-opt sort-box-slt-pl-opt-asc" value="functions/ead/mosaic-results.ajax-html?base=ead&champ1=fulltext&op1=and&search_type=simple&query1=sdxall%3a1&ssearch-submit-npt.x=0&ssearch-submit-npt.y=0&form-display-only-media=&docs=true&&skippage=here&sf=&so=asc">pertinence</option>         <option class="sort-box-slt-pl-opt sort-box-slt-pl-opt-asc" value="functions/ead/mosaic-results.ajax-html?base=ead&champ1=fulltext&op1=and&search_type=simple&query1=sdxall%3a1&ssearch-submit-npt.x=0&ssearch-submit-npt.y=0&form-display-only-media=&docs=true&&skippage=here&sf=fucomptitle&so=asc">titre croissant</option>         <option class="sort-box-slt-pl-opt sort-box-slt-pl-opt-desc" value="functions/ead/mosaic-results.ajax-html?base=ead&champ1=fulltext&op1=and&search_type=simple&query1=sdxall%3a1&ssearch-submit-npt.x=0&ssearch-submit-npt.y=0&form-display-only-media=&docs=true&&skippage=here&sf=fucomptitle&so=desc">titre décroissant</option>         <option> .... </option>     </select> <span> 

i want execute ajax function when user select option but, code inside addevent never reached. js code:

... if(browser.chrome && browser.platform.mac){     if($('ead-sort-box-select') != null){         var elements = $$('.sort-box-slt-pl-opt');         elements.each( function( element ) {             element.addevent('click', function(){                 console.log('test');             });         });     } } ... 


Comments