Hi folks,

Is there a way using just new Element to create an Option element?

To get it to work in FF and IE, I need to do the following:

var o = new Element('Option', {'value': times[i], 'innerHTML':
times[i]});  // for IE
o.text = times[i];  // for FF

This doesn't work in FF:
var o = new Element('Option', {'value': times[i], 'text': times[i],
'innerHTML': times[i]});

innerText doesn't work in FF either.


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to