I have the following in the page
Apple Cars
with pure javascript
var condition = true; // your condition if(condition) { var theSelect = document.getElementById('val'); var options = theSelect.getElementsByTagName('OPTION'); for(var i=0; i
not tested with IE (if someone can confirm it...)