I have this code that creates a <select> multiple and three options on it. The I select all options. In firefox and Opera it works well, but in IE the select is not multiple and in another code, the select is multiple but only select the last options :S Somebody can review this demo code? var miSelect = document.createElement( "select" ); miSelect.multiple = true; miSelect.size = 5; var opcion = document.createElement( "option" ); opcion.value = "laOpcion1"; var texto = document.createTextNode( "La opcion 1" ); opcion.appendChild( texto ); miSelect.appendChild( opcion ); var opcion = document.createElement( "option" ); opcion.value = "laOpcion2"; var texto = document.createTextNode( "La opcion 2" ); opcion.appendChild( texto ); miSelect.appendChild( opcion ); var opcion = document.createElement( "option" ); opcion.value = "laOpcion3"; var texto = document.createTextNode( "La opcion 3" ); opcion.appendChild( texto ); miSelect.appendChild( opcion ); $$( "body" )[0].appendChild( miSelect ); $A( miSelect.childNodes ).each( function ( elemento ) { elemento.selected = true; }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
On 9/28/06, Javier Martinez <ecentinela-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have this code that creates a <select> multiple and three options on it. > The I select all options. In firefox and Opera it works well, but in IE the > select is not multiple and in another code, the select is multiple but only > select the last options :SA IE bug. See http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs for a kludge. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---