I am firing an ajax call to get json response which I am populating in the dropdown.
Code is:
var ajaxURL = "abc.ajax";
var fireAjax = new Request.JSON({
url: ajaxURL,
method:'GET',
onSuccess:function(resultjson){
if(resultjson.length!=0){
var elSelect = new Element('option',{'html':'First component','value':'All'}).injectInside($('vehicletype'));
resultjson.each(function(vName){
var elOptions = new Element('option',{'value':vName,'selected':'selected' }).setHTML(vName).injectInside($('vehicletype'));
});
sschecker[0].registerAnotherElement($('vehicletype'));
}
}
}).send();
This is working fine in IE8, firefox, etc.