javascript - Mootools - Scope problem in IE -
im starting play mootools not sure why following hide me options in select list, in ie not:
<select id="test_select" multiple> <option>a</option> <option>b</option> <option>c</option> </select> $$('#test_select option').each(function(el){ el.addclass('hide'); });
i appreciate bit of on this...
to hide option in select must remove option select in ie.
here explanation in further detail hide option in select
to remove option element select w/ mootools can following: jsfiddle
$$('#test_select option').each(function(el){ if(el.get("html") == 'a') el.destroy(); });
Comments
Post a Comment